IDiagram.SelectedShapes 属性

当前所选形状的集合。 如果未选中单个图形,则集合将包含将其作为唯一成员的关系图。 如果选定其他图形,则关系图将不会出现在集合中。

命名空间:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
程序集:  Microsoft.VisualStudio.ArchitectureTools.Extensibility(在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll 中)

语法

声明
ReadOnly Property SelectedShapes As IEnumerable(Of IShape)
    Get
IEnumerable<IShape> SelectedShapes { get; }
property IEnumerable<IShape^>^ SelectedShapes {
    IEnumerable<IShape^>^ get ();
}
abstract SelectedShapes : IEnumerable<IShape>
function get SelectedShapes () : IEnumerable<IShape>

属性值

类型:System.Collections.Generic.IEnumerable<IShape>

备注

要获取对形状进行过滤以仅包括特定类型并排除关系图的集合,请使用 GetSelectedShapes()。

.NET Framework 安全性

请参见

参考

IDiagram 接口

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation 命名空间