Class TextRange
Represents a contiguous span of text found within a FormattedText. Returned by FindAll(string, StringComparison) and FindFirst(string, StringComparison).
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public sealed class TextRange
Properties
CharacterIndex
Gets the zero-based character offset within the paragraph's flattened text (all run texts concatenated) at which the match begins.
Declaration
public int CharacterIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Length
Gets the number of characters in the match.
Declaration
public int Length { get; }
Property Value
| Type | Description |
|---|---|
| int |
ParagraphIndex
Gets the zero-based index of the paragraph that contains this match.
Declaration
public int ParagraphIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Text
Gets the matched text.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |