New to Telerik UI for WPFStart a free 30-day trial

Represents the line information of a paragraph within a document layout.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ParagraphLineInfo

Inheritance: objectParagraphLineInfo

Constructors

C#
public ParagraphLineInfo(Paragraph paragraph)
Parameters:paragraphParagraph
C#
public ParagraphLineInfo(ParagraphLineInfo paragraphLineInfo)
Parameters:paragraphLineInfoParagraphLineInfo

Properties

Gets or sets the baseline offset of the paragraph line.

C#
public float BaselineOffset { get; }

Gets the first inline box in the paragraph line information.

C#
public InlineLayoutBox FirstInlineBox { get; set; }

Gets or sets the spacing before the floating box in the paragraph line information.

C#
public float FloatingBoxSpacingBefore { get; }

Gets a value indicating whether the paragraph line contains an overflow character.

C#
public bool HasOverflowCharacter { get; }

Gets the height of the paragraph line information.

C#
public float Height { get; }

Gets the index of the paragraph in which this line resides.

C#
public int IndexInParagraph { get; }

Gets a value indicating whether the line is split by a floating box.

C#
public bool IsLineSplitByFloatingBox { get; }

Gets the index of the last word in the paragraph line information.

C#
public int LastWordIndex { get; }

Represents the paragraph associated with the paragraph line information.

C#
public Paragraph Paragraph { get; }

Gets the width of the trailing extra space in the paragraph line information.

C#
public float TralingExtraSpaceWidth { get; }

Gets the width of the paragraph line information.

C#
public float Width { get; }

Gets the number of words in the paragraph line.

C#
public int WordCount { get; }

Methods

Updates the baseline offset of the paragraph line information.

C#
public void UpdateBaselineOffset(float value, bool affectsLineSpacing)
Parameters:valuefloat

The new baseline offset to set.

affectsLineSpacingbool

Indicates whether the offset is relative to the current baseline.

Updates the descent information for the paragraph line.

C#
public void UpdateDescent(float value, bool affectsLineSpacing)
Parameters:valuefloat

The descent value to be set.

affectsLineSpacingbool

Indicates whether the update is due to a line break.