FormComboBoxControl.font Method [AX 2012]

Gets or sets the name of the font that should be used for the control.

public str font([str value])

Run On

Client

Parameters

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

Return Value

Type: str
The name of the font that should be used, such as Tahoma or Verdana.

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

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

Community Additions

ADD
Show: