TextBoxBeforeTextChangingEventArgs Klasse

Definition

Stellt Ereignisdaten für das TextBox.BeforeTextChanging-Ereignis bereit .

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
Vererbung
Object Platform::Object IInspectable TextBoxBeforeTextChangingEventArgs
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Fall Creators Update (eingeführt in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v5.0)

Hinweise

Ein instance dieser Klasse wird als Parameter an den BeforeTextChanging-Ereignishandler übergeben.

Eigenschaften

Cancel

Ruft einen Wert ab, der angibt, ob die Textänderungen abgebrochen werden sollen, oder legt diesen fest.

NewText

Ruft den neuen Text ab, der in das Textfeld eingegeben wird.

Gilt für: