.NET Framework Class Library
TextPointer Members

Represents a position within a FlowDocument or TextBlock.

The TextPointer type exposes the following members.

Methods

  NameDescription
Public methodCompareToPerforms an ordinal comparison between the positions specified by the current TextPointer and a second specified TextPointer.
Public methodDeleteTextInRunDeletes the specified number of characters from the position indicated by the current TextPointer.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAdjacentElementReturns the element, if any, that borders the current TextPointer in the specified logical direction.
Public methodGetCharacterRectReturns a bounding box (Rect) for content that borders the current TextPointer in the specified logical direction.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetInsertionPositionReturns a TextPointer to the closest insertion position in the specified logical direction.
Public methodGetLineStartPositionOverloaded. Returns a TextPointer to the beginning of a line that is specified relative to the current TextPointer.
Public methodGetNextContextPositionReturns a pointer to the next symbol in the specified logical direction.
Public methodGetNextInsertionPositionReturns a TextPointer to the next insertion position in the specified logical direction.
Public methodGetOffsetToPositionReturns the count of symbols between the current TextPointer and a second specified TextPointer.
Public methodGetPointerContextReturns a category indicator for the content adjacent to the current TextPointer in the specified logical direction.
Public methodGetPositionAtOffsetOverloaded. Returns a TextPointer to the position indicated by the specified offset, in symbols, from the beginning of content.
Public methodGetTextInRunOverloaded. Returns text adjacent to the current TextPointer.
Public methodGetTextRunLengthReturns the number of Unicode characters between the current TextPointer and the next non-text symbol, in the specified logical direction.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInsertLineBreakInserts a line break at the current position.
Public methodInsertParagraphBreakInserts a paragraph break at the current position.
Public methodInsertTextInRunInserts the specified text into the text Run at the current position.
Public methodIsInSameDocumentIndicates whether the specified position is in the same text container as the current position.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringThis 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
Properties

  NameDescription
Public propertyDocumentEndGets a TextPointer at the end of content in the text container associated with the current position.
Public propertyDocumentStartGets a TextPointer at the beginning of content in the text container associated with the current position.
Public propertyHasValidLayoutGets a value that indicates whether the text container associated with the current position has a valid (up-to-date) layout.
Public propertyIsAtInsertionPositionGets a value that indicates whether the current position is an insertion position.
Public propertyIsAtLineStartPositionGets a value that indicates whether the current position is at the beginning of a line.
Public propertyLogicalDirectionGets the logical direction associated with the current position which is used to disambiguate content associated with the current position.
Public propertyParagraphGets the paragraph that scopes the current position, if any.
Public propertyParentGets the logical parent that scopes the current position.
Top
See Also

Reference

Tags :


Page view tracker