trichview.com

trichview.support




Re: InsertItem and reformatting paragaph styles


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/09/2004 12:50:13


Hi,


If you change text or paragraph style that is already used in the document,

this change will affect all places where these styles are used.


You need either use one of existing styles (if style with the desired

properties aready exists) or create a new one and use it.

It's better to use ApplyParaStyleConversion instead of ApplyParaStyle.

See the example in

Demos\Delphi\Editors\Editor 1\



> Hi!

>

> I inserted some text by typing it into TRichViewEdit and aligned it via:

> TRichVE.Style.ParaStyles.Items[TRichVE.CurParaStyleNo].Alignment =

rvaLeft;

> TRichVE.ApplyParaStyle(TRichVE.CurParaStyleNo);

>

> That actually works like it's supposed to, but when I insert a table (for

> example) via InsertItem, the whole TRichViewEdit is reformatted.

> While I understand this is by design, I'd like to know how to prevent the

> control from reformatting ALL of my paragraphs...

>

> Regards, Josh

>

>





Powered by ABC Amber Outlook Express Converter