SelectionOptions enumeration

Applies to Windows and Windows Phone

Describes the options that apply to a selection.

Syntax


public enum class SelectionOptions

Attributes

[Flags()]
[Version(0x06020000)]

Members

The SelectionOptions enumeration has these members.

MemberValueDescription
StartActive | startActive1

The start position of the selection is the active end; that is, the end that is changed by pressing Shift+Right Arrow and Shift+Left Arrow.

AtEndOfLine | atEndOfLine2

For a degenerate selection (insertion point), the character position at the beginning of a line is the same as the character position at the end of the preceding line. As such, the character position is ambiguous. If this flag is 1, display the caret at the end of the preceding line; otherwise, display it at the beginning of the line.

Overtype | overtype4

Insert/overtype mode is set to overtype.

Active | active8

The selection is active; that is, the text control has the input focus.

Replace | replace16

Typing and pasting replaces the selection.

Remarks

Each option is binary, so if a particular option is not set, the text selection has the opposite option. For example, if the Overtype option is not set, the text selection is set to insert mode.

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

ITextSelection.Options

 

 

Show:
© 2014 Microsoft