TextBoxBeforeTextChangingEventArgs Class

Definition

Provides event data for the TextBox.BeforeTextChanging event.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxBeforeTextChangingEventArgs
Inheritance
Object 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

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6