FormTreeControl.font Method [AX 2012]

Gets or sets the name of the font that is used for the text in the control.

public str font([str value])

Run On

Client

Parameters

value
Type: str
A string value that indicates the font to use for the text in a form tree control.

Return Value

Type: str
The name of the font to use, such as Tahoma or Verdana.

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

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

Community Additions

ADD
Show: