CommandLinkButtonAutoScaleFont Property
Gets or sets whether
Font and
DescriptionFont should be automatically scaled when DPI changes and the current thread has per-monitor DPI awareness.
Default value:
.
Namespace: KGySoft.WinForms.ControlsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
[DefaultValueAttribute(true)]
public bool AutoScaleFont { get; set; }
<DefaultValueAttribute(true)>
Public Property AutoScaleFont As Boolean
Get
Set
public:
[DefaultValueAttribute(true)]
property bool AutoScaleFont {
bool get ();
void set (bool value);
}
[<DefaultValueAttribute(true)>]
member AutoScaleFont : bool with get, set
Property Value
Boolean When , Font and DescriptionFont
are automatically scaled to the current DPI of the corresponding display on every executing platform.
When , the Font may or may not be scaled, depending on the default behavior of the executing platform, and DescriptionFont is never scaled.
Please note that this property affects the font only. The default glyph and the elevated icon (see the
IsElevated property) are always scaled with V2 awareness,
whereas scaling the size (when
AutoSize is
) and location always depends on the executing platform behavior.