GetSHXTextBox

  Classes Reference > Functional Reference >

GetSHXTextBox

Previous pageReturn to chapter overviewNext page

Returns bounding rectangle.

Unit

SHX.pas

procedure GetSHXTextBox(ASHXStyles: TsgSHXFontlist; const Style: 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

Style – defines converting style

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 – additional converting option – SHX Font text is set to vertical orientation

Above – above value of the SHX Font defined in Style

Below – below value of the SHX Font defined in Style

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 of the SHX Font text string basing on the text string defined in Text  with predefined by ASHXStyles, Style and Vertical parameters.

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 converted SHX Font text string

Go to CAD VCL Enterprise