ISelectionService.SelectionChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Si verifica quando cambia la selezione corrente.
public:
event EventHandler ^ SelectionChanged;
event EventHandler SelectionChanged;
member this.SelectionChanged : EventHandler
Event SelectionChanged As EventHandler
Tipo evento
Esempio
Nell'esempio seguente viene illustrato come usare l'evento SelectionChanged .
// Add SelectionChanged event handler to event
m_selectionService->SelectionChanged += gcnew EventHandler( this, &ComponentClass::OnSelectionChanged );
// Add SelectionChanged event handler to event
m_selectionService.SelectionChanged += new EventHandler(OnSelectionChanged);
' Add SelectionChanged event handler to event
AddHandler m_selectionService.SelectionChanged, AddressOf OnSelectionChanged
/* This is the OnSelectionChanged handler method. This method calls
OnUserChange to display a message that indicates the name of the
handler that made the call and the type of the event argument. */
void OnSelectionChanged( Object^ /*sender*/, EventArgs^ args )
{
OnUserChange( "OnSelectionChanged", args->ToString() );
}
/* This is the OnSelectionChanged handler method. This method calls
OnUserChange to display a message that indicates the name of the
handler that made the call and the type of the event argument. */
private void OnSelectionChanged(object sender, EventArgs args)
{
OnUserChange("OnSelectionChanged", args.ToString());
}
' This is the OnSelectionChanged handler method. This method calls
' OnUserChange to display a message that indicates the name of the
' handler that made the call and the type of the event argument.
Private Sub OnSelectionChanged(ByVal sender As Object, ByVal args As EventArgs)
OnUserChange("OnSelectionChanged", args.ToString())
End Sub
Commenti
Ridurre al minimo l'elaborazione durante la gestione di questo evento, perché l'elaborazione che si verifica all'interno di questo gestore eventi può influire significativamente sulle prestazioni complessive della finestra di progettazione moduli.