FormComboBoxControl.labelPosition Method
Sets or returns the position of the label for the control.
Syntax
public int labelPosition([int value])
Run On
Client
Parameters
- value
Type: int
The value to assign to the label position; optional.
Return Value
Type: int
An integer that represents the position of the label.
Remarks
If the value parameter is set to 0 (zero), the label is put to the left of the control. If the value parameter is set to 1, the label is put above the control.
A return value of 0 (zero) indicates that the label is put to the left of the control. A return value of 1 indicates that the label is put above the control.
Examples
The following example shows how to return and set the label position.
// Retrieve the label position.
info (strfmt("label: %1", this.labelPosition()));
// Set the label position.
this.labelPosition(1); // 1 == Above, 0 == Left