TextPointer TextPointer TextPointer TextPointer Class

Definition

Represents a position within a text element.

public : sealed class TextPointer
struct winrt::Windows::UI::Xaml::Documents::TextPointer
public sealed class TextPointer
Public NotInheritable Class TextPointer
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

LogicalDirection LogicalDirection LogicalDirection LogicalDirection

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

Offset Offset Offset Offset

Gets the character index of a TextPointer within its container.

Parent Parent Parent Parent

Gets the logical parent that contains the current position.

VisualParent VisualParent VisualParent VisualParent

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

Methods

GetCharacterRect(LogicalDirection) GetCharacterRect(LogicalDirection) GetCharacterRect(LogicalDirection) GetCharacterRect(LogicalDirection)

Returns a bounding box for content that borders the current TextPointer in the specified logical direction.

GetPositionAtOffset(Int32, LogicalDirection) GetPositionAtOffset(Int32, LogicalDirection) GetPositionAtOffset(Int32, LogicalDirection) 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.