Class
ParagraphLineInfo

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

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ParagraphLineInfo

Inheritance: objectParagraphLineInfo

Constructors

ParagraphLineInfo(Paragraph)

Declaration

cs-api-definition
public ParagraphLineInfo(Paragraph paragraph)

Parameters

paragraph

Paragraph

ParagraphLineInfo(ParagraphLineInfo)

Declaration

cs-api-definition
public ParagraphLineInfo(ParagraphLineInfo paragraphLineInfo)

Parameters

paragraphLineInfo

ParagraphLineInfo

Properties

BaselineOffset

Gets or sets the baseline offset of the paragraph line.

Declaration

cs-api-definition
public float BaselineOffset { get; }

Property Value

float

FirstInlineBox

Gets the first inline box in the paragraph line information.

Declaration

cs-api-definition
public InlineLayoutBox FirstInlineBox { get; set; }

Property Value

InlineLayoutBox

FloatingBoxSpacingBefore

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

Declaration

cs-api-definition
public float FloatingBoxSpacingBefore { get; }

Property Value

float

HasOverflowCharacter

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

Declaration

cs-api-definition
public bool HasOverflowCharacter { get; }

Property Value

bool

Height

Gets the height of the paragraph line information.

Declaration

cs-api-definition
public float Height { get; }

Property Value

float

IndexInParagraph

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

Declaration

cs-api-definition
public int IndexInParagraph { get; }

Property Value

int

IsLineSplitByFloatingBox

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

Declaration

cs-api-definition
public bool IsLineSplitByFloatingBox { get; }

Property Value

bool

LastWordIndex

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

Declaration

cs-api-definition
public int LastWordIndex { get; }

Property Value

int

Paragraph

Represents the paragraph associated with the paragraph line information.

Declaration

cs-api-definition
public Paragraph Paragraph { get; }

Property Value

Paragraph

TralingExtraSpaceWidth

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Traling")]
public float TralingExtraSpaceWidth { get; }

Property Value

float

Width

Gets the width of the paragraph line information.

Declaration

cs-api-definition
public float Width { get; }

Property Value

float

WordCount

Gets the number of words in the paragraph line.

Declaration

cs-api-definition
public int WordCount { get; }

Property Value

int

Methods

UpdateBaselineOffset(float, bool)

Updates the baseline offset of the paragraph line information.

Declaration

cs-api-definition
public void UpdateBaselineOffset(float value, bool affectsLineSpacing)

Parameters

value

float

The new baseline offset to set.

affectsLineSpacing

bool

Indicates whether the offset is relative to the current baseline.

UpdateDescent(float, bool)

Updates the descent information for the paragraph line.

Declaration

cs-api-definition
public void UpdateDescent(float value, bool affectsLineSpacing)

Parameters

value

float

The descent value to be set.

affectsLineSpacing

bool

Indicates whether the update is due to a line break.