Back to Devexpress

TextInfoControlBase.AutoScaleFont Property

windowsforms-devexpress-dot-xtrascheduler-dot-reporting-dot-textinfocontrolbase-08c1fdcc.md

latest1.7 KB
Original Source

TextInfoControlBase.AutoScaleFont Property

Gets or sets whether the control’s font is modified automatically, so that the text fits the control’s dimensions.

Namespace : DevExpress.XtraScheduler.Reporting

Assembly : DevExpress.XtraScheduler.v25.2.Reporting.dll

NuGet Package : DevExpress.Win.SchedulerReporting

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AutoScaleFont { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AutoScaleFont As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to scale the control’s font automatically; otherwise, false.

|

Remarks

The AutoScaleFont is set to true to make the font size smaller as the text becomes longer, so that it always fits the control’s boundaries. To maintain the font size, turn off autoscaling by setting the AutoScaleFont to false.

See Also

TextInfoControlBase Class

TextInfoControlBase Members

DevExpress.XtraScheduler.Reporting Namespace