Dela via


SelectionOptions Enum

Definition

Describes the options that apply to a selection.

This enumeration supports a bitwise combination of its member values.

public enum class SelectionOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SelectionOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SelectionOptions
var value = Windows.UI.Text.SelectionOptions.startActive
Public Enum SelectionOptions
Inheritance
SelectionOptions
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
StartActive 1

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 2

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 4

Insert/overtype mode is set to overtype.

Active 8

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

Replace 16

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.

Applies to

See also