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

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:

C#
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.

C#
public ParagraphLineSegmentInfo(Paragraph paragraph, float segmentStartX)
Parameters:paragraphParagraph

The paragraph containing the segment.

segmentStartXfloat

The segment's initial horizontal coordinate.

Properties

Gets or sets the number of annotation marker boxes assigned to the segment for alignment calculations.

C#
public int AnnotationsCount { get; }

Gets or sets the number of annotation markers encountered but not yet included in AnnotationsCount.

C#
public int AnnotationsCountNotAdded { get; }

Gets or sets the horizontal displacement applied when the segment is arranged.

C#
public float ArrangeDelta { get; }

Gets the segment's start coordinate after applying its arrangement displacement.

C#
public float ArrangeStartX { get; }

Gets or sets the number of character positions attributed to this segment during layout.

C#
public int CharactersCount { get; }

Gets or sets the extra horizontal space associated with the segment for layout and alignment.

C#
public float Gap { get; }

Gets whether this segment's start coordinate still matches the coordinate recorded when it was created.

C#
public bool IsStartSegment { get; }

Gets or sets the line-relative inline-box index of the last word-bearing box in this segment.

C#
public int LastWordIndex { get; }

Gets or sets the segment-relative inline-box index of the last word-bearing box.

C#
public int LastWordIndexInSegment { get; }

Gets the paragraph containing this segment.

C#
public Paragraph Paragraph { get; }

Count of the gaps that are caused by single symbol characters

C#
public int SingleSymbolGapsCount { get; set; }

Gets or sets the segment's horizontal start coordinate during layout.

C#
public float StartX { get; }

Gets the segment width including its associated gap.

C#
public float TotalWidth { get; }

Gets or sets the measured width of the segment, excluding its associated gap.

C#
public float Width { get; }

Gets or sets the number of word-bearing inline boxes counted in this segment.

C#
public int WordCount { get; }