Share via


TextBoxSelectionChangingEventArgs Class

Definition

Provides event data for the TextBox.SelectionChanging event.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxSelectionChangingEventArgs
Inheritance
Object TextBoxSelectionChangingEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

An instance of this class is passed as a parameter to the SelectionChanging event handler.

Properties

Cancel

Gets or sets a value that indicates whether the selection operation should be canceled.

SelectionLength

Gets the length of the text selection.

SelectionStart

Gets the starting index of the text selection.

Applies to

Product Versions
WinRT Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100