Function TWPCustomRtfEdit.SetParStyle(X:string) : TWPRTFStyleElement

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • X:string

Returns

The type of the result value is TWPRTFStyleElement.

Description

Utility function to add a style for the currently syelected text. Returns the style element. with WPRichText1.SetParStyle( 'Header' ) do begin TextStyle.ASetCharStyle( true, WPSTY_BOLD ); TextStyle.ASet( WPAT_CharFontSize, 4400 ); OverwritePar(false, true); end;