Function TWPCustomRtfEdit.ParStylePaint(StyleName:string; toCanvas:TCanvas; r:TRect) : Integer

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • StyleName:string
  • toCanvas:TCanvas
  • r:TRect

Returns

The type of the result value is Integer.

Description

This function paints the name of a paragraph style into a rectangle using the character attributes of the style. If the rectangle is passed with a width of 0 the required height for preview which uses the correct height is calculated and returned.