Function TWPRTFStyleCollection.Add(StyleName:string; UsedByMask:Cardinal) : TWPRTFStyleElement
Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFStyleCollection
Parameters
StyleName:string UsedByMask:Cardinal
Returns
The type of the result value is TWPRTFStyleElement.
Description
Adds a new style element - or returns the element which was found under this name.
You can also use TWPRichText.SetParStyle which also applies the style the current paraghhraphs,
otherwise don't forget to call "TWPRTFStyleElement.OverwritePar" when all attributes were assigned to
make sure the affected paragraphs do not override the settings of the text style.