FormComboBoxControl.labelPosition Method

Definition

Overloads

labelPosition(Int32)
labelPosition()

Sets or returns the position of the label for the control.

labelPosition(Int32)

public:
 virtual int labelPosition(int _value);
public virtual int labelPosition (int _value);
abstract member labelPosition : int -> int
override this.labelPosition : int -> int
Public Overridable Function labelPosition (_value As Integer) As Integer

Parameters

_value
Int32

The value to assign to the label position; optional.

Returns

Applies to

labelPosition()

Sets or returns the position of the label for the control.

public:
 virtual int labelPosition();
public virtual int labelPosition ();
abstract member labelPosition : unit -> int
override this.labelPosition : unit -> int
Public Overridable Function labelPosition () As Integer

Returns

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.

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

Applies to