Compartilhar via


TextBoxBeforeTextChangingEventArgs Classe

Definição

Fornece dados de evento para o evento TextBox.BeforeTextChanging .

public ref class TextBoxBeforeTextChangingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextBoxBeforeTextChangingEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TextBoxBeforeTextChangingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextBoxBeforeTextChangingEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxBeforeTextChangingEventArgs
Public NotInheritable Class TextBoxBeforeTextChangingEventArgs
Herança
Object Platform::Object IInspectable TextBoxBeforeTextChangingEventArgs
Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Fall Creators Update (introduzida na 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v5.0)

Comentários

Uma instância dessa classe é passada como um parâmetro para o manipulador de eventos BeforeTextChanging .

Propriedades

Cancel

Obtém ou define um valor que indica se as alterações de texto devem ser canceladas.

NewText

Obtém o novo texto inserido na caixa de texto.

Aplica-se a