TextPointer class

TextPointer class

Represents a position within a text element.

Inheritance

Object
  TextPointer

Syntax


public sealed class TextPointer

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-only

Gets the logical direction associated with the current position, which is used to disambiguate content associated with the current position.

Offset

Read-only

Gets the character index of a TextPointer within its container.

Parent

Read-only

Gets the logical parent that contains the current position.

VisualParent

Read-only

Gets the user interface (UI) element that "owns" this TextPointer.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

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 (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

 

 

Show:
© 2016 Microsoft