xtd 0.2.0
Loading...
Searching...
No Matches

◆ font() [1/2]

virtual drawing::font xtd::forms::control::font ( ) const
virtualnoexcept

Gets the font of the text displayed by the control.

Returns
The font to apply to the text displayed by the control. The default is the value of the default_font property.
Remarks
The xtd::forms::control::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 xtd::forms::button will have the same xtd::forms::control::back_color as its parent xtd::forms::form by default. For more information about ambient properties, see the ambient_properties guide.

Reimplemented in xtd::forms::font_picker.

Examples
demo.cpp, hello_world_emoticons.cpp, and test_forms.cpp.