Delen via


SelectionEventsClass.OnChange Event

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

Occurs after the selection model changes.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event OnChange As _dispSelectionEvents_OnChangeEventHandler
public virtual event _dispSelectionEvents_OnChangeEventHandler OnChange
public:
virtual   event _dispSelectionEvents_OnChangeEventHandler^ OnChange {
    void add (_dispSelectionEvents_OnChangeEventHandler^ value);
    void remove (_dispSelectionEvents_OnChangeEventHandler^ value);
}
abstract OnChange : IEvent<_dispSelectionEvents_OnChangeEventHandler,
    EventArgs>
override OnChange : IEvent<_dispSelectionEvents_OnChangeEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispSelectionEvents_Event.OnChange

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.

Examples

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

.NET Framework Security

See Also

Reference

SelectionEventsClass Class

EnvDTE Namespace