Skip to main content

FastTextBlock.MostDesiredSize Property

Gets the most desired size to fit the text.

Namespace: DevExpress.Xpf.Scheduling.Visual

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

NuGet Package: 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