Stores the horizontal layout and alignment metrics for one contiguous segment of a paragraph line. Floating blocks can divide a line into multiple segments.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ParagraphLineSegmentInfo
Inheritance: objectParagraphLineSegmentInfo
Constructors
Creates segment metrics for a paragraph at the specified initial horizontal coordinate. The gap is initialized to -1 until layout determines it.
Properties
Gets or sets the number of annotation marker boxes assigned to the segment for alignment calculations.
public int AnnotationsCount { get; }
Gets or sets the number of annotation markers encountered but not yet included in AnnotationsCount.
public int AnnotationsCountNotAdded { get; }
Gets or sets the horizontal displacement applied when the segment is arranged.
public float ArrangeDelta { get; }
Gets the segment's start coordinate after applying its arrangement displacement.
public float ArrangeStartX { get; }
Gets or sets the number of character positions attributed to this segment during layout.
public int CharactersCount { get; }
Gets or sets the extra horizontal space associated with the segment for layout and alignment.
public float Gap { get; }
Gets whether this segment's start coordinate still matches the coordinate recorded when it was created.
public bool IsStartSegment { get; }
Gets or sets the line-relative inline-box index of the last word-bearing box in this segment.
public int LastWordIndex { get; }
Gets or sets the segment-relative inline-box index of the last word-bearing box.
public int LastWordIndexInSegment { get; }
Gets the paragraph containing this segment.
public Paragraph Paragraph { get; }
Count of the gaps that are caused by single symbol characters
public int SingleSymbolGapsCount { get; set; }
Gets or sets the segment's horizontal start coordinate during layout.
public float StartX { get; }
Gets the segment width including its associated gap.
public float TotalWidth { get; }
Gets or sets the measured width of the segment, excluding its associated gap.
public float Width { get; }