Property TWPSelectedTextAttrInterface.CharAttr : Cardinal
Unit: WPRTEDefs
Class: WPRTEDefs.TWPSelectedTextAttrInterface
Description
Using this property it is possible to assign the character styles defined in a source text.
WPRichText1.Finder.ToStart;
while WPRichText1.Finder.Next('<*>') do
begin
WPRichText1.Finder.FoundAttr.CharAttr :=
WPRichText1.Finder.FoundParagraph.CharAttr[
WPRichText1.Finder.FoundPosInPar+1];
WPRichText1.Finder.FoundText := 'new text';
end;
WPRichText1.ReformatAll();