Partilhar via


FormComboBoxControl.labelFont Method

Definition

Overloads

labelFont(String)
labelFont()

Sets or returns a font for the label text in a form combo box control.

labelFont(String)

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

Parameters

_value
String

A String data type that indicates the font for the label text in a form combo box control; optional.

Returns

Applies to

labelFont()

Sets or returns a font for the label text in a form combo box control.

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

Returns

A String data type value that indicates the font for the label text in a form combo box control.

Remarks

The following example shows how to return and set the font for the label text in a form combo box control.

str strLabelFont; 
// The ctrl variable was previously assigned  
// as a form combo box control variable. 
// Retrieve the font. 
strLabelFont = ctrl.labelFont(); 
// Set the label font. 
ctrl.labelFont("Times New Roman");

Applies to