TextBoxSelectionChangingEventArgs Class

Definition

Provides event data for the TextBox.SelectionChanging event.

public ref class TextBoxSelectionChangingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TextBoxSelectionChangingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxSelectionChangingEventArgs
Public NotInheritable Class TextBoxSelectionChangingEventArgs
Inheritance
Object Platform::Object IInspectable 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