4D v16.3

OBJECT Get vertical alignment

Home

 
4D v16.3
OBJECT Get vertical alignment

OBJECT Get vertical alignment 


 

OBJECT Get vertical alignment ( {* ;} object ) -> Function result 
Parameter Type   Description
Operator in If specified, object is an object name (string)
If omitted, object is a variable
object  Form object in Object Name (if * is specified) or
Variable (if * is omitted)
Function result  Longint in Type of alignment

The OBJECT Get vertical alignment command returns a value indicating the type of vertical alignment applied to the object designated by the object and * parameters.

If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string.

Note: If you apply this command to a set of objects, only the alignment value for the last object is returned.

The value returned corresponds to one of the following constants, found in the Form Objects (Properties) theme:

Constant Type Value
Align bottom Longint 4
Align center Longint 3
Align top Longint 2

Vertical alignment can be applied to the following types of form objects:

  • list boxes,
  • list box columns,
  • list box headers and footers.



See also 

OBJECT Get horizontal alignment
OBJECT SET HORIZONTAL ALIGNMENT
OBJECT SET VERTICAL ALIGNMENT

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1188

 
HISTORY 

Created: 4D v13

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)