TextPointer Methods

The TextPointer type exposes the following members.

  NameDescription
Public method CompareTo Performs an ordinal comparison between the positions specified by the current TextPointer and a second specified TextPointer.
Public method DeleteTextInRun Deletes the specified number of characters from the position indicated by the current TextPointer.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAdjacentElement Returns the element, if any, that borders the current TextPointer in the specified logical direction.
Public method GetCharacterRect Returns a bounding box (Rect) for content that borders the current TextPointer in the specified logical direction.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInsertionPosition Returns a TextPointer to the closest insertion position in the specified logical direction.
Public method GetLineStartPosition(Int32) Returns a TextPointer to the beginning of a line that is specified relative to the current TextPointer.
Public method 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.
Public method GetNextContextPosition Returns a pointer to the next symbol in the specified logical direction.
Public method GetNextInsertionPosition Returns a TextPointer to the next insertion position in the specified logical direction.
Public method GetOffsetToPosition Returns the count of symbols between the current TextPointer and a second specified TextPointer.
Public method GetPointerContext Returns a category indicator for the content adjacent to the current TextPointer in the specified logical direction.
Public method GetPositionAtOffset(Int32) Returns a TextPointer to the position indicated by the specified offset, in symbols, from the beginning of the current TextPointer.
Public method 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.
Public method GetTextInRun(LogicalDirection) Returns a string containing any text adjacent to the current TextPointer in the specified logical direction.
Public method 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.
Public method GetTextRunLength Returns the number of Unicode characters between the current TextPointer and the next non-text symbol, in the specified logical direction.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InsertLineBreak Inserts a line break at the current position.
Public method InsertParagraphBreak Inserts a paragraph break at the current position.
Public method InsertTextInRun Inserts the specified text into the text Run at the current position.
Public method IsInSameDocument Indicates whether the specified position is in the same text container as the current position.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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().)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft