Share via


FormComboBoxControl.label Method

Definition

Overloads

label(String)
label()

Gets or sets the label for a control.

label(String)

public:
 virtual System::String ^ label(System::String ^ _value);
public virtual string label (string _value);
abstract member label : string -> string
override this.label : string -> string
Public Overridable Function label (_value As String) As String

Parameters

_value
String

The value to assign as the label of the control; optional.

Returns

Applies to

label()

Gets or sets the label for a control.

public:
 virtual System::String ^ label();
public virtual string label ();
abstract member label : unit -> string
override this.label : unit -> string
Public Overridable Function label () As String

Returns

The current value of the label string.

Remarks

The label determines the text that is displayed in the control or adjacent to it. The label property value cannot exceed 250 characters.

The following example shows how to return and set the label of the control.

// Return the label value. 
info(strfmt("label: %1", this.label())); 
// Set the label value. 
this.label("New label text goes here");

Applies to