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

取得在文字框中輸入的新文字。

適用於