共用方式為


IVsSelectionContext.CurrentDocumentSelection 屬性

傳回使用中文件視窗中選取項目的集合。

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

語法

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

屬性值

類型:System.Collections.ICollection

.NET Framework 安全性

請參閱

參考

IVsSelectionContext 介面

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