Partager via


KeyboardInputBuffer.SelectionChanged Événement

Définition

Se produit lorsque la sélection de texte dans la mémoire tampon d’entrée a changé.

// Register
event_token SelectionChanged(TypedEventHandler<KeyboardInputBuffer, CoreSelectionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
KeyboardInputBuffer::SelectionChanged_revoker SelectionChanged(auto_revoke_t, TypedEventHandler<KeyboardInputBuffer, CoreSelectionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<KeyboardInputBuffer,CoreSelectionChangedEventArgs> SelectionChanged;
function onSelectionChanged(eventArgs) { /* Your code */ }
keyboardInputBuffer.addEventListener("selectionchanged", onSelectionChanged);
keyboardInputBuffer.removeEventListener("selectionchanged", onSelectionChanged);
- or -
keyboardInputBuffer.onselectionchanged = onSelectionChanged;
Public Custom Event SelectionChanged As TypedEventHandler(Of KeyboardInputBuffer, CoreSelectionChangedEventArgs) 

Type d'événement

S’applique à