BoxMeasurementInfo
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:
public class BoxMeasurementInfo
Inheritance: objectBoxMeasurementInfo
Constructors
Creates a measurement with default size and baseline values.
public BoxMeasurementInfo()
Creates a measurement by copying the size and baseline offsets from another instance.
public BoxMeasurementInfo(BoxMeasurementInfo toCopy)
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.
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.
public float BaselineOffset { get; set; }
Gets or sets the baseline offset before the subscript shift is applied.
public float BaselineOffsetWithoutSubscript { get; set; }