Share via


TextBoxBeforeTextChangingEventArgs Class

Definition

Provides event data for the TextBox.BeforeTextChanging event.

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

Remarks

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

Properties

Cancel

Gets or sets a value that indicates whether to cancel the text changes.

NewText

Gets the new text that is entered into the text box.

Applies to