IMonitorSelectionService 介面
監視目前的選取狀態,命令介面中。
此 API 不符合 CLS 標準。
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)
語法
'宣告
<CLSCompliantAttribute(False)> _
Public Interface IMonitorSelectionService
[CLSCompliantAttribute(false)]
public interface IMonitorSelectionService
IMonitorSelectionService 型別會公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
![]() |
CurrentDocument | 取得現用文件。 |
![]() |
CurrentDocumentView | 取得使用中文件的檢視。 |
![]() |
CurrentSelectionContainer | 取得動態選取項目容器。 |
![]() |
CurrentUndoManager | 取得UndoManager ,係授與使用中的文件視窗。 |
![]() |
CurrentWindow | 取得文件] 窗格或正在使用中的工具視窗窗格。 |
![]() |
CurrentWindowFrame | 取得文件框架或正在使用中的工具視窗框架。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
GetCommandContextCookie | 取得指派給指定的指令 UI 內容的 cookie。 |
![]() |
IsCommandContextActive(Guid) | 確認指定的指令 UI 內容是否為作用中。 |
![]() |
IsCommandContextActive(UInt32) | 驗證指令 UI 內容,指定 cookie 是否為作用中。 |
回頁首
事件
名稱 | 說明 | |
---|---|---|
![]() |
CommandContextChanged | 當您啟動或停用命令的 UI 內容時,就會發生。 |
![]() |
DocumentChanged | 當文件變更時發生。 |
![]() |
DocumentWindowChanged | 變更文件視窗時發生。 |
![]() |
SelectionChanged | 發生於目前選取變更時。 |
![]() |
UndoManagerChanged | 發生於當目前的UndoManager的變更。 |
![]() |
WindowChanged | 變更視窗框架時發生。 |
回頁首