TextPointer class

Represents a position within a text element.

Inheritance

Object
  TextPointer

Syntax


public sealed class TextPointer

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The TextPointer class has these types of members:

Methods

The TextPointer class has these methods. It also inherits methods from the Object class.

MethodDescription
GetCharacterRect Returns a bounding box for content that borders the current TextPointer in the specified logical direction.
GetPositionAtOffset 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.

 

Properties

The TextPointer class has these properties.

PropertyAccess typeDescription

LogicalDirection

Read-onlyGets the logical direction associated with the current position, which is used to disambiguate content associated with the current position.

Offset

Read-onlyGets the character index of a TextPointer within its container.

Parent

Read-onlyGets the logical parent that contains the current position.

VisualParent

Read-onlyGets the user interface (UI) element that "owns" this TextPointer.

 

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

 

 

Show:
© 2015 Microsoft