Skip to main content
A newer version of this page is available. .

FastTextBlock.MostDesiredSize Property

Gets the most desired size to fit the text.

Namespace: DevExpress.Xpf.Scheduling.Visual

Assembly: DevExpress.Xpf.Scheduling.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public Size? MostDesiredSize { get; }

Property Value

Type Description
Nullable<Size>

A Nullable<T><Size,> value that is the element’s size.

Remarks

The MostDesiredSize value is the box size required to display the text considering all options (font, wrapping etc.). The value is calculated when measuring the text layout using the specified render strategy. Default strategy uses GlyphRun.

The MostDesiredSize value is one of the measurement factors in the MeasureOverride methods implemented in the FastTextBlock and AppointmentContentPanel classes.

See Also