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: .

Definition

Namespace: KGySoft.WinForms.Controls
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
[DefaultValueAttribute(true)]
public bool AutoScaleFont { get; set; }

Property Value

Boolean

Remarks

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.

  Note

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.

See Also