Windows Dev Center

ITextSelection interface

Represents the currently selected text of a document.

Syntax


public interface class ITextSelection : ITextRange

Members

The ITextSelection interface has these types of members:

Methods

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

MethodDescription
EndKey Moves the insertion point or the active end of the text selection to the end of the specified unit, mimicking the functionality of the End key.
HomeKey Moves the insertion point or the active end of the text selection to the home position, mimicking the functionality of the Home key.
MoveDown Moves the insertion point or the active end of the text selection down, mimicking the functionality of the Down Arrow or Page Down key.
MoveLeft Moves the insertion point or the active end of the text selection to the left, mimicking the functionality of the Left Arrow key.
MoveRight Moves the insertion point or the active end of the text selection to the right, mimicking the functionality of the Right Arrow key.
MoveUp Moves the insertion point or the active end of the text selection up, mimicking the functionality of the Up Arrow or Page Up keys.
TypeText Enters text into the selection as if someone typed it.

 

Properties

The ITextSelection interface has these properties.

PropertyAccess typeDescription

Options

Read/writeGets and sets text selection options.

Type

Read-onlyRetrieves the type of text selection.

 

Remarks

Interface inheritance

ITextSelection inherits ITextRange. Types that implement ITextSelection also implement the interface members of ITextRange.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]
[WebHostHidden()]

See also

ITextRange

 

 

Show:
© 2015 Microsoft