[]
Gets or sets the font of the text displayed by the control.
public override Font Font { get; set; }
Public Overrides Property Font As Font
Type | Description |
---|---|
Font | The Font to apply to the text displayed by the control. The default is the value of the DefaultFont property. |
The Font property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a Button will have the same BackColor as its parent Form by default. For more information about ambient properties, see the AmbientProperties class or the Control class overview.
Because the Font is immutable (meaning that you cannot adjust any of its properties), you can only assign the Font property a new Font; however, you can base the new font on the existing font.