共用方式為


IVsSelectionContext.CurrentSelection 屬性

傳回使用中視窗中選取項目的集合。 這可能是文件視窗或工具視窗。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

語法

'宣告
ReadOnly Property CurrentSelection As ICollection
ICollection CurrentSelection { get; }

屬性值

類型:System.Collections.ICollection

.NET Framework 安全性

請參閱

參考

IVsSelectionContext 介面

Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement 命名空間