Procedure TWPTextStyle.SetStyle(ParStyleNr:Integer; ClearParStyles:Boolean; ClearCharStyles:Boolean)

Unit: WPRTEDefs
Class: WPRTEDefs.TWPTextStyle

Parameters

  • ParStyleNr:Integer
  • ClearParStyles:Boolean
  • ClearCharStyles:Boolean

Description

Selects a base style for this style and optionally deletes the redundant attributes which can potentially hide the definition of the base style. The method is used to clear the paragraph, the method is used to clear the character attributes.
Also see EditOptions: wpClearAttrOnStyleChange and wpClearAttrOnStyleChange.

Overloaded Methods

Procedure TWPTextStyle.SetStyle(StyleName:string; ClearParStyles:Boolean; ClearCharStyles:Boolean)Procedure TWPTextStyle.SetStyle(Element:TWPRTFStyleElement; ClearParStyles:Boolean; ClearCharStyles:Boolean)