TextRange Interface

 

Represents a single, contiguous section of text in a text document.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubpropertyCollection

Gets the collection containing the TextRange object supporting this property.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyEndPoint

Gets an EditPoint that is the location of the end of the range.

System_CAPS_pubpropertyStartPoint

Gets the EditPoint object representing the beginning of the text document, or the first displayed character of the pane.

The section of text is enclosed by a pair of EditPoint objects.

TextRange objects are used when you have regular expressions with tagged subexpressions. A collection of ranges is returned, one for each matched subexpression, and their properties are read-only.

For general text manipulation, it is recommended that you instead use objects such as TextSelection or EditPoint, because the TextSelection object relates directly to the selection visible on the screen. When the selection area changes, the object's coordinates change, and vice-versa. As a result, a text selection cannot be used to represent an arbitrary range of text without disrupting that text selection.

No code example is currently available or this language may not be supported.
Return to top
Show: