Share via


FormComboBoxControl.font Method

Definition

Overloads

font(String)
font()

Gets or sets the name of the font that should be used for 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 data type that indicates the font to use for text in a form combo box control; optional.

Returns

Applies to

font()

Gets or sets the name of the font that should be used for 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 that should be used, such as Tahoma or Verdana.

Remarks

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

Applies to