Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
TextPointer Class
 TextPointer Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
TextPointer Members

Represents a position within a FlowDocument or TextBlock.

The TextPointer type exposes the following members.

  NameDescription
Public methodCompareTo Performs an ordinal comparison between the positions specified by the current TextPointer and a second specified TextPointer.
Public methodDeleteTextInRun Deletes the specified number of characters from the position indicated by the current TextPointer.
Public methodEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAdjacentElement Returns the element, if any, that borders the current TextPointer in the specified logical direction.
Public methodGetCharacterRect Returns a bounding box (Rect) for content that borders the current TextPointer in the specified logical direction.
Public methodGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetInsertionPosition Returns 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 methodGetNextContextPosition Returns a pointer to the next symbol in the specified logical direction.
Public methodGetNextInsertionPosition Returns a TextPointer to the next insertion position in the specified logical direction.
Public methodGetOffsetToPosition Returns the count of symbols between the current TextPointer and a second specified TextPointer.
Public methodGetPointerContext Returns 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 methodGetTextRunLength Returns the number of Unicode characters between the current TextPointer and the next non-text symbol, in the specified logical direction.
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInsertLineBreak Inserts a line break at the current position.
Public methodInsertParagraphBreak Inserts a paragraph break at the current position.
Public methodInsertTextInRun Inserts the specified text into the text Run at the current position.
Public methodIsInSameDocument Indicates whether the specified position is in the same text container as the current position.
Protected methodMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString 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
  NameDescription
Public propertyDocumentEnd Gets a TextPointer at the end of content in the text container associated with the current position.
Public propertyDocumentStart Gets a TextPointer at the beginning of content in the text container associated with the current position.
Public propertyHasValidLayout Gets a value that indicates whether the text container associated with the current position has a valid (up-to-date) layout.
Public propertyIsAtInsertionPosition Gets a value that indicates whether the current position is an insertion position.
Public propertyIsAtLineStartPosition Gets a value that indicates whether the current position is at the beginning of a line.
Public propertyLogicalDirection Gets the logical direction associated with the current position which is used to disambiguate content associated with the current position.
Public propertyParagraph Gets the paragraph that scopes the current position, if any.
Public propertyParent Gets the logical parent that scopes the current position.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker