FormComboBoxControl.alignControl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.