Share via


TextBoxSelectionChangingEventArgs Class

Definition

Provides event data for the TextBox.SelectionChanging event.

public ref class TextBoxSelectionChangingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TextBoxSelectionChangingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxSelectionChangingEventArgs
Public NotInheritable Class TextBoxSelectionChangingEventArgs
Inheritance
Object Platform::Object IInspectable TextBoxSelectionChangingEventArgs
Attributes

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