Partilhar via


FormComboBoxControl.fontSize Method

Definition

Overloads

fontSize()

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

fontSize(Int32)

fontSize()

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

public:
 virtual int fontSize();
public virtual int fontSize ();
abstract member fontSize : unit -> int
override this.fontSize : unit -> int
Public Overridable Function fontSize () As Integer

Returns

The height of the font in points.

Remarks

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

int nSize; 
// The ctrl variable was previously assigned  
// as a form combo box control. 
// Retrieve the font size. 
nSize = ctrl.fontSize(); 
// Set the font size. 
ctrl.fontSize(16);

Applies to

fontSize(Int32)

public:
 virtual int fontSize(int _value);
public virtual int fontSize (int _value);
abstract member fontSize : int -> int
override this.fontSize : int -> int
Public Overridable Function fontSize (_value As Integer) As Integer

Parameters

_value
Int32

An Integer data type that indicates the font size in points for text in a form combo box control; optional.

Returns

Applies to