Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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