Class TWPStyleCollection

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TComponent | TWPStyleCollection

Description

The TWPStyleCollection can be used to store paragraph styles which should be used by the editor. In WPTools5 the TWPStyleCollection is nothing more than a container for paragraph styles, it is not requiredThe editor component has its own collection of paragraph styles which is accessible through procedure TStyleDemo.FormShow(Sender: TObject); begin WPStyleCollection1.Update; end;Saving the current style sheet:WPStyleCollection1.ReadStyles(WPRichText1); WPStyleCollection1.SaveToFile('c:\styles.ini');Loading a style sheet:WPStyleCollection1.LoadFromFile('c:\styles.ini'); WPStyleCollection1.Update(WPRichText1.HeaderFooter.RTFProps);

Properties

Methods

Events

OnChangeStyle : TWPStyleCollectionChangeStyleEvent= TWPStyleCollectionChangeStyleEvent

OnChangeStyleList : TNotifyEvent= procedure (Sender : TObject) of Object

Used or referenced by

-Property TWPParStyle.StyleCollection : TWPStyleCollection