trichview.com

trichview.support




Re: Creating documents by code


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/26/2004 15:53:23


You need to create an unique text style for each unique combination of text

attributes.

If you need to make the style idx2 like the style idx1 but italic, the code

is:


// copying properties

RVStyle1.TextStyles[idx2] := RVStyle1.TextStyles[idx1];

// making italic

RVStyle1.TextStyles[idx2].Style :=

RVStyle1.TextStyles[idx2].Style+[fsItalic];


> I like a lot this approach. I just wondering if is it possible to

> create a text style "Emphasis" that has it's formating styles and if

> necessary change only one property like "italic=True" just for one

> instance within the document. Seems that the way to acomplish this is

> to create a new text style based on "Emphasis" and change it's italic

> attribute.

>

> Thanks for your support.

>

> -------------

> Juan





Powered by ABC Amber Outlook Express Converter