ITextSelection interface

Applies to Windows and Windows Phone

Represents the currently selected text of a document.

Syntax


public interface ITextSelection : ITextRange

Attributes

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

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

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

See also

ITextRange

 

 

Show:
© 2014 Microsoft. All rights reserved.