TextPointer Methods
.NET Framework 4
The TextPointer type exposes the following members.
| Name | Description | |
|---|---|---|
|
CompareTo | Performs an ordinal comparison between the positions specified by the current TextPointer and a second specified TextPointer. |
|
DeleteTextInRun | Deletes the specified number of characters from the position indicated by the current TextPointer. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetAdjacentElement | Returns the element, if any, that borders the current TextPointer in the specified logical direction. |
|
GetCharacterRect | Returns a bounding box (Rect) for content that borders the current TextPointer in the specified logical direction. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetInsertionPosition | Returns a TextPointer to the closest insertion position in the specified logical direction. |
|
GetLineStartPosition(Int32) | Returns a TextPointer to the beginning of a line that is specified relative to the current TextPointer. |
|
GetLineStartPosition(Int32, Int32) | Returns a TextPointer to the beginning of a line that is specified relative to the current TextPointer, and reports how many lines were skipped. |
|
GetNextContextPosition | Returns a pointer to the next symbol in the specified logical direction. |
|
GetNextInsertionPosition | Returns a TextPointer to the next insertion position in the specified logical direction. |
|
GetOffsetToPosition | Returns the count of symbols between the current TextPointer and a second specified TextPointer. |
|
GetPointerContext | Returns a category indicator for the content adjacent to the current TextPointer in the specified logical direction. |
|
GetPositionAtOffset(Int32) | Returns a TextPointer to the position indicated by the specified offset, in symbols, from the beginning of the current TextPointer. |
|
GetPositionAtOffset(Int32, LogicalDirection) | Returns a TextPointer to the position indicated by the specified offset, in symbols, from the beginning of the current TextPointer and in the specified direction. |
|
GetTextInRun(LogicalDirection) | Returns a string containing any text adjacent to the current TextPointer in the specified logical direction. |
|
GetTextInRun(LogicalDirection, Char[], Int32, Int32) | Copies the specified maximum number of characters from any adjacent text in the specified direction into a caller-supplied character array. |
|
GetTextRunLength | Returns the number of Unicode characters between the current TextPointer and the next non-text symbol, in the specified logical direction. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
InsertLineBreak | Inserts a line break at the current position. |
|
InsertParagraphBreak | Inserts a paragraph break at the current position. |
|
InsertTextInRun | Inserts the specified text into the text Run at the current position. |
|
IsInSameDocument | Indicates whether the specified position is in the same text container as the current position. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. (Overrides Object.ToString().) |