ISelectionService.SelectionChanged ISelectionService.SelectionChanged ISelectionService.SelectionChanged ISelectionService.SelectionChanged Event

Definition

Tritt auf, wenn sich die aktuelle Auswahl ändert.Occurs when the current selection changes.

public:
 event EventHandler ^ SelectionChanged;
event EventHandler SelectionChanged;
member this.SelectionChanged : EventHandler 
Event SelectionChanged As EventHandler 

Beispiele

Das folgende Beispiel veranschaulicht, wie Sie mit der SelectionChanged Ereignis.The following example illustrates how to use the SelectionChanged event.

// 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 'OnSelectionChanged

Hinweise

Minimieren Sie die Verarbeitung, wenn dieses Ereignis behandeln, da dieser Ereignishandler verarbeitet wird, erfolgt erheblich auf die gesamtleistung des Formular-Designer auswirken kann.Minimize processing when handling this event, because processing that occurs within this event handler can significantly affect the overall performance of the form designer.

Gilt für:

Siehe auch