共用方式為


SelectionEvents 介面

更新:2007 年 11 月

提供選取範圍變更的事件。請使用這個物件的功能性,並且參考 SelectionEventsClass 取得這個物件的文件。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

<GuidAttribute("EB6783DB-1819-496D-84A4-3CFF883010F6")> _
Public Interface SelectionEvents _
    Implements _SelectionEvents, _dispSelectionEvents_Event

Dim instance As SelectionEvents
[GuidAttribute("EB6783DB-1819-496D-84A4-3CFF883010F6")]
public interface SelectionEvents : _SelectionEvents, 
    _dispSelectionEvents_Event
[GuidAttribute(L"EB6783DB-1819-496D-84A4-3CFF883010F6")]
public interface class SelectionEvents : _SelectionEvents, 
    _dispSelectionEvents_Event
public interface SelectionEvents extends _SelectionEvents, _dispSelectionEvents_Event

範例

<System.ContextStaticAttribute()> Public WithEvents SelectionEvents As EnvDTE.SelectionEvents

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

請參閱

參考

SelectionEvents 成員

EnvDTE 命名空間