Share via


FormComboBoxControl.labelFont Method

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

Syntax

public str labelFont([str value])

Run On

Client

Parameters

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

Return Value

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

Examples

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");

See Also

FormComboBoxControl Class

FormComboBoxControl.labelFontSize Method