| 4D v13.4OBJECT Get horizontal alignment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v13.4
 OBJECT Get horizontal alignment 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OBJECT Get horizontal alignment ( {* ;} object ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| * | Operator |   | If specified, object is an Object name (String) If omitted, object is a field or a variable | |||||
| object | Form object |   | Object name (if * specified), or Field or variable (if * omitted) | |||||
| Function result | Longint |   | Alignment code | |||||
The OBJECT Get horizontal alignment command returns a code indicating the type of horizontal alignment applied to the object designated by the object and * parameters.
If you specify the optional * parameter, you indicate an object name (a string) in the object parameter. If you omit the * parameter, you indicate a field or variable in the object parameter. In this case, you specify a field or variable reference (field or variable objects only) instead of a string.
Note: If you apply the command to a group of objects, only the alignment value of the last object is returned.
The returned code corresponds to one of the following constants located in the Object Properties theme:
| Constant | Type | Value | 
| Align center | Longint | 3 | 
| Align default | Longint | 1 | 
| Align left | Longint | 2 | 
| Align right | Longint | 4 | 
The form objects to which alignment can be applied are as follows:
	Product:  4D
	Theme:  Object Properties
	Number:  
        707
        
        
        
	

	Created:  4D v6.8.1
	Renamed: 4D v12
	Renamed: 4D v13
OBJECT Get vertical alignment
OBJECT SET HORIZONTAL ALIGNMENT
OBJECT SET VERTICAL ALIGNMENT