QG_GetCaptionAlignment(areaRef; horzAlignment; vertAlignment):error
areaRef Longint QGrid area reference
horzAlignment Longint Horizontal alignment
vertAlignment Longint Vertical alignment
error Longint Error result

Get the caption text alignment

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.

Parameters horzAlignment and vertAlignment receive the horizontal and vertical caption text alignment settings. Possible values are:

qg_AlignHorzLeft 0 Horizontally align to the left
qg_AlignHorzCenter 1 Horizontally align to the center
qg_AlignHorzRight 2 Horizontally align to the right
qg_AlignVertTop 0 Vertically align to the top
qg_AlignVertCenter 1 Vertically align to the center
qg_AlignVertBottom 2 Vertically align to the bottom

Related commands

QG_SetCaptionAlignment Set the caption text alignment
QG_GetCaptionFont Get the caption font
QG_GetCaptionColors Get the caption colors