Diagram.AutoLayoutShapeElements 方法 (ICollection, VGRoutingStyle, PlacementValueStyle, Boolean)
自動配置圖表上的項目圖案集合。
此應用程式開發介面不符合 CLS 標準。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。