FormComboBoxControl.alignControl Method

Definition

Overloads

alignControl()

Determines whether the control should be aligned with other controls.

alignControl(Boolean)

alignControl()

Determines whether the control should be aligned with other controls.

public:
 override bool alignControl();
public override bool alignControl ();
override this.alignControl : unit -> bool
Public Overrides Function alignControl () As Boolean

Returns

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

Remarks

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);

Applies to

alignControl(Boolean)

public:
 override bool alignControl(bool _value);
public override bool alignControl (bool _value);
override this.alignControl : bool -> bool
Public Overrides Function alignControl (_value As Boolean) As Boolean

Parameters

_value
Boolean

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

Returns

Applies to