trichview.com

trichview.support




Applying TextStyle to an whole paragraph


Return to index


Author

Message

Vladimir Ota

Posted: 04/03/2002 16:59:59


I'm evaluating Richview for eventual use in my project. Paragraphs as defined

in my application has to have not only the properties defined by ParaStyles

but should include the font info as well (defined by TextStyles).


I figure that to apply TextStyle to a paragraph, I have to write the code

to:

1. remember the caret position (and ev. selection)

2. select the whole paragraph

3. apply the needed TextStyle to the paragraph

4. deselect the paragraph

5. restore the caret (and ev. selection)


Richview is new to me, so I cant figure out how to do the 2.(i.e. select

the whole paragraph), neither from demos nor from docs.


Also, I wonder if there is more elegant way to do it (perhaps the best would

be if the component itself could change the whole paragraph?)?


Any help and/or suggestion is welcome.


Regards, Vladimir





Powered by ABC Amber Outlook Express Converter