TextBlock.SelectionChanged Evento

Definición

Se produce cuando varía la selección de texto.

// Register
event_token SelectionChanged(RoutedEventHandler const& handler) const;

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

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

Tipo de evento

Comentarios

Importante

Si usa un teclado para la selección de texto dentro de un TextBlock, el usuario debe activar primero la exploración de intercalación (con la aplicación en primer plano, presione F7).

Se aplica a