TextBox.TextCompositionStarted Событие

Определение

Происходит, когда пользователь начинает создавать текст с помощью метода ввода Редактор (IME).

// Register
event_token TextCompositionStarted(TypedEventHandler<TextBox, TextCompositionStartedEventArgs const&> const& handler) const;

// Revoke with event_token
void TextCompositionStarted(event_token const* cookie) const;

// Revoke with event_revoker
TextBox::TextCompositionStarted_revoker TextCompositionStarted(auto_revoke_t, TypedEventHandler<TextBox, TextCompositionStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextCompositionStartedEventArgs> TextCompositionStarted;
function onTextCompositionStarted(eventArgs) { /* Your code */ }
textBox.addEventListener("textcompositionstarted", onTextCompositionStarted);
textBox.removeEventListener("textcompositionstarted", onTextCompositionStarted);
- or -
textBox.ontextcompositionstarted = onTextCompositionStarted;
Public Custom Event TextCompositionStarted As TypedEventHandler(Of TextBox, TextCompositionStartedEventArgs) 
<TextBox TextCompositionStarted="eventhandler"/>

Тип события

Комментарии

Сведения о событиях см. в разделе TextCompositionStartedEventArgs.

Это событие возникает только в том случае, если текст создается с помощью метода ввода Редактор (IME). События композиции текста происходят в следующем порядке:

После события TextCompositionStarted цикл событий TextChanging>TextChanged>TextCompositionChanged Может происходить несколько раз до возникновения события TextCompositionEnded .

Применяется к

См. также раздел