DrawSHXTextBox

  Classes Reference > Functional Reference >

DrawSHXTextBox

Previous pageReturn to chapter overviewNext page

Returns bounding rectangle.

Unit

SHX.pas

procedure DrawSHXTextBox(ASHXStyles: TsgSHXFontlist; const Font: string; const Text: sgRawByteString; const WideText: WideString; CodePage: Integer; Vertical: Boolean; var Above, Below, Width, Height, RealLeft, RealBottom, RealRight, RealTop, After: Double);

ASHXStyles – an instance of the TsgSHXFontList object

Font – name of the SHX Font

Text – object of sgRawByteString type

WideText – wide text string

CodePage – code page that specifies symbols in SHX. Ignored in Delphi versions older than 2009.

Vertical – SHX Font text is set to vertical orientation

Above – above value of the SHX Font defined in Font

Below – below value of the SHX Font defined in Font  

Width – width parameter of the SHX Font

Height – height parameter of the SHX Font

RealLeft, RealBottom, RealRight, RealTop – borders of the real surrounding rectangle

Description

Returns bounding rectangle basing on the specified in Text or WideText SHX Font text string with predefined by ASHXStyles, Vertical, Backward properties.

Returns:

in Above, Below the above and below parameters of the SHX Font defined in Font

in Width, Height the width and height parameters of the SHX Font defined in Font

in RealLeft, RealBottom, RealRight, RealTop the real border rectangle of the SHX Font text string

Go to CAD VCL Enterprise