Skip to main content

TBasedxReportLink.drawText(TCanvas,TRect,Integer,string,TFont,TColor,TcxTextAlignX,TcxTextAlignY,Boolean,Boolean,Boolean) Method

Draws text in a report.

Declaration

procedure drawText(Canvas: TCanvas; var R: TRect; AIndent: Integer; const Text: string; Font: TFont; BkColor: TColor; TextAlignX: TcxTextAlignX; TextAlignY: TcxTextAlignY; FillBackground: Boolean; Multiline: Boolean; EndEllipsis: Boolean); virtual;

Parameters

Name Type
Canvas TCanvas
R TRect
AIndent Integer
Text string
Font TFont
BkColor TColor
TextAlignX TcxTextAlignX
TextAlignY TcxTextAlignY
FillBackground Boolean
Multiline Boolean
EndEllipsis Boolean

Remarks

This method is intended for drawing text on a report’s surface. Call this method when custom painting a report.

The Canvas parameter determines the drawing surface. Pass the report link’s Renderer.Canvas property to the parameter.

The R parameter specifies the bound rectangle for drawing.

The AIndent parameter determines text indent relative to the bound rectangle.

The Text parameter specifies the text string to draw.

The Font parameter specifies text font.

The BkColor parameter specifies the background color.

The TextAlignX parameter specifies horizontal text alignment, whether it is aligned to the left, right, or centered.

The TextAlignY parameter specifies vertical text alignment, whether it is aligned to the top, bottom, or centered.

Set the FillBackground parameter to True to print the background.

Set the MultiLine parameter to True to allow text printing across several lines.

Set the EndEllipsis parameter to print ellipsis (‘…’) when text does not fit inside the boundaries of a bound rectangle.

See Also