TextRange ClassDocument Toolkit Help
Represents a range of text between two TextPointer positions.
Inheritance Hierarchy

SystemObject
  FirstFloor.DocumentsTextRange
    FirstFloor.DocumentsTextSelection

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public class TextRange

The TextRange type exposes the following members.

Constructors

  NameDescription
Public methodTextRange
Initializes an empty instance of the TextRange class.
Public methodTextRange(TextPointer, TextPointer)
Initializes a new instance of the TextRange class.
Top
Properties

  NameDescription
Public propertyEnd
Get the position that marks the end of the text range.
Public propertyIsEmpty
Gets a value indicating whether the text range is empty.
Public propertyMax
Gets the larger of the start and end point.
Public propertyMin
Gets the smaller of the start and end point.
Public propertyStart
Gets the position that marks the beginning of the text range.
Top
Methods

  NameDescription
Public methodClone
Creates a copy of the current TextRange object.
Public methodContains
Checks whether a position (specified by a TextPointer) is located within the current range.
Public methodContainsPage
Checks whether specified page is located within the current range.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Top
See Also

Reference