TextBox.BeforeTextChanging Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi secara sinkron saat teks dalam kotak teks mulai berubah, tetapi sebelum properti Teks diperbarui.
// Register
event_token BeforeTextChanging(TypedEventHandler<TextBox, TextBoxBeforeTextChangingEventArgs const&> const& handler) const;
// Revoke with event_token
void BeforeTextChanging(event_token const* cookie) const;
// Revoke with event_revoker
TextBox::BeforeTextChanging_revoker BeforeTextChanging(auto_revoke_t, TypedEventHandler<TextBox, TextBoxBeforeTextChangingEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextBoxBeforeTextChangingEventArgs> BeforeTextChanging;
function onBeforeTextChanging(eventArgs) { /* Your code */ }
textBox.addEventListener("beforetextchanging", onBeforeTextChanging);
textBox.removeEventListener("beforetextchanging", onBeforeTextChanging);
- or -
textBox.onbeforetextchanging = onBeforeTextChanging;
Public Custom Event BeforeTextChanging As TypedEventHandler(Of TextBox, TextBoxBeforeTextChangingEventArgs)
<TextBox BeforeTextChanging="eventhandler"/>