Diagram.AutoLayoutShapeElements 方法 (ICollection, VGRoutingStyle, PlacementValueStyle, Boolean)
自动布局元素形状的集合在关系图上。
此 API 不兼容 CLS。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
Public Sub AutoLayoutShapeElements ( _
shapeElementCollection As ICollection, _
routingStyle As VGRoutingStyle, _
placementStyle As PlacementValueStyle, _
route As Boolean _
)
[CLSCompliantAttribute(false)]
public void AutoLayoutShapeElements(
ICollection shapeElementCollection,
VGRoutingStyle routingStyle,
PlacementValueStyle placementStyle,
bool route
)
参数
- shapeElementCollection
类型:System.Collections.ICollection
形状元素的集合。
- routingStyle
类型:Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.VGRoutingStyle
确定路由样式元素之间的链接显示方式。
- placementStyle
类型:Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.PlacementValueStyle
确定位置的样式元素如何在关系图来确定。
- route
类型:System.Boolean
重新路由行的true 由于边界或转至网格事件,因此,如果元素已移动;否则, false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。