TextGetAlign

Syntax

AlignMode = TextGetAlign(Text)

Description

Retrieves the current vertical alignment setting for the specified text object.

Parameters

Text
The handle of the text object whose alignment is to be retrieved.

Return Value

Returns the current vertical alignment mode constant:

#PG_Text_Align_Top
#PG_Text_Align_Bottom
#PG_Text_Align_Center

Returns #False (0) if the text handle is invalid (note: 0 corresponds to #PG_Text_Align_Top, the default).

See Also

CreateText, TextSetAlign, TextGetJustify

Supported OS

Windows, Linux