The TextRange type exposes the following members.

Constructors

  NameDescription
Public methodTextRange()()()()
Constructs a TextRange with default values for start and length.
Public methodTextRange(TextRange)
Constructs a copy of the input TextRange object.
Public methodTextRange(Int32, Int32)
Constructs a TextRange with input start and length.

Methods

  NameDescription
Public methodDispose
Releases all resources used by the TextRange
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyEnd
The index of the first character after the end of the range
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public propertyLength
The length of the range.
Public propertyStart
The start index of a range within the FormattedText.

See Also