New to Telerik UI for WinForms? Start a free 30-day trial

Holds measured text dimensions and baseline offsets used to place text within a layout box.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class BoxMeasurementInfo

Inheritance: objectBoxMeasurementInfo

Constructors

Creates a measurement with default size and baseline values.

C#
public BoxMeasurementInfo()

Creates a measurement by copying the size and baseline offsets from another instance.

C#
public BoxMeasurementInfo(BoxMeasurementInfo toCopy)
Parameters:toCopyBoxMeasurementInfo

The measurement whose values are copied.

Fields

Gets the shared measurement with zero-initialized dimensions and baseline offsets. Its properties are mutable, so changes affect all consumers of this instance.

C#
public static readonly BoxMeasurementInfo Empty

Properties

Gets or sets the baseline offset used to align the measured text in a line. For subscript text this includes the subscript baseline shift.

C#
public float BaselineOffset { get; set; }

Gets or sets the baseline offset before the subscript shift is applied.

C#
public float BaselineOffsetWithoutSubscript { get; set; }

Gets or sets the measured width and height of the text.

C#
public SizeF Size { get; set; }