Share via


FormTreeControl.font Method

Definition

Overloads

font(String)
font()

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

font(String)

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

Parameters

_value
String

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

Returns

Applies to

font()

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

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

Returns

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

Remarks

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

Applies to