TextBoxBeforeTextChangingEventArgs 类

定义

提供 TextBox.BeforeTextChanging 事件的事件数据。

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
继承
Object Platform::Object IInspectable TextBoxBeforeTextChangingEventArgs
属性

注解

此类的实例作为参数传递给 BeforeTextChanging 事件处理程序。

属性

Cancel

获取或设置一个值,该值指示是否取消文本更改。

NewText

获取在文本框中输入的新文本。

适用于