• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TextRange

Represents a contiguous span of text found within a FormattedText. Returned by FindAll(string, StringComparison) and FindFirst(string, StringComparison).

Inheritance
object
TextRange
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX