Back to API Reference
Struct
TextMeasureOptions
sealed
Box constraints and setting overrides for MeasureText. Every null field falls back to the component's current value, so default measures the current text, as configured, at its natural unconstrained size. Overrides behave exactly like the matching component settings (with autoSize on, fontSize is ignored and minFontSize / maxFontSize drive the fit). Dimensions are outer (Padding included).
public Nullable<float> maxWidthWrap width. Null — unconstrained.
public Nullable<float> maxHeightBox height: with auto-size the font shrinks to fit maxWidth × this before measuring, like in a real rect. Null — unconstrained. Does not affect flow without auto-size.
public Nullable<float> fontSizepublic Nullable<bool> autoSizepublic Nullable<float> minFontSizepublic Nullable<float> maxFontSizepublic Nullable<bool> wordWrap