ParagraphLineInfo
Stores the measured dimensions, baseline, and inline-box boundaries for one laid-out paragraph line. Line height and baseline reflect the paragraph's configured line-spacing mode.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ParagraphLineInfo
Inheritance: objectParagraphLineInfo
Constructors
Creates line metrics for a paragraph and initializes the last-word index to indicate that no word has been recorded.
public ParagraphLineInfo(Paragraph paragraph)
The paragraph whose line is being measured.
Copies the line metrics and layout references from another line. The paragraph and first inline box references are shared with the source.
public ParagraphLineInfo(ParagraphLineInfo paragraphLineInfo)
The line state to copy.
Properties
Gets the line's baseline offset, adjusted for the paragraph's exact or minimum line-spacing mode.
public float BaselineOffset { get; }
Gets or sets the first inline box associated with this line, used as its layout and navigation anchor.
public InlineLayoutBox FirstInlineBox { get; set; }
Gets or sets the additional vertical spacing inserted before this line when layout moves it around a floating block.
public float FloatingBoxSpacingBefore { get; }
Gets or sets whether the line contains an eligible overflow character that extends beyond its available width. The layout uses this flag to prevent another character from overflowing on the same line.
public bool HasOverflowCharacter { get; }
Gets the calculated line height after applying the paragraph's line-spacing mode.
public float Height { get; }
Gets or sets this line's position in the paragraph's laid-out line sequence.
public int IndexInParagraph { get; }
Gets or sets whether a floating block divided this line into separate horizontal segments.
public bool IsLineSplitByFloatingBox { get; }
Gets or sets the inline-box index of the last word-bearing box on this line, or -1 when none was recorded.
public int LastWordIndex { get; }
public float TralingExtraSpaceWidth { get; }
Gets or sets the horizontal extent of the line within the width available to it during layout. Floating blocks can reduce that available width.
public float Width { get; }
Methods
Updates the line's greatest measured baseline offset and, when requested, includes the value in automatic line-spacing calculations.
Updates the line's greatest measured descent and, when requested, includes the value in automatic line-spacing calculations.