SelectionEventsClass.OnChange Event

Definition

Occurs after the selection model changes.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual event EnvDTE::_dispSelectionEvents_OnChangeEventHandler ^ OnChange;
public:
 virtual event EnvDTE::_dispSelectionEvents_OnChangeEventHandler ^ OnChange;
public virtual event EnvDTE._dispSelectionEvents_OnChangeEventHandler OnChange;
member this.OnChange : EnvDTE._dispSelectionEvents_OnChangeEventHandler 
Public Overridable Custom Event OnChange As _dispSelectionEvents_OnChangeEventHandler Implements OnChange

Event Type

Implements

Examples

Public Sub SelectionEvents_OnChange() Handles SelectionEvents.OnChange  
   MsgBox("test")  
End Sub  

Remarks

Whenever something is selected in the development environment, a model of what the user has selected is created. A change in this model causes the OnChange event to occur.

Applies to