FormComboBoxControl.alignControl Method [AX 2012]

Determines whether the control should be aligned with other controls.

public boolean alignControl([boolean value])

Run On

Client

Parameters

value
Type: boolean
A Boolean value that indicates whether the form combo box control is aligned with other controls; optional.

Return Value

Type: boolean
true if the control should be aligned; otherwise, false.

The upper-left corner of the control is aligned based on the longest label.

The following example shows a call to the alignControl method to align a form combo box control with other controls, based on the length of the longest label.

boolean bAlign; 
 
// The combo variable was previously assigned 
// as a FormComboBoxControl type. 
// Retrieve the alignControl property. 
bAlign = combo.alignControl(); 
 
// Set the alignControl property. 
combo.alignControl(false);

Community Additions

ADD
Show: