Without wanting to place too fine a point on it, that approach is doing nothing different to what you already had in mind. It is not expanding or collapsing the text. All it is doing is changing the font attibrutes to hidden /not hidden.