共用方式為


Diagram.AutoLayoutShapeElements Method

Definition

Overloads

AutoLayoutShapeElements(ICollection)

Automatically lays out the passed collection of ShapeElements.

AutoLayoutShapeElements(ICollection, VGRoutingStyle, PlacementValueStyle, Boolean)

Automatically lays out the passed collection of ShapeElements.

AutoLayoutShapeElements(ICollection)

Automatically lays out the passed collection of ShapeElements.

public:
 void AutoLayoutShapeElements(System::Collections::ICollection ^ shapeElementCollection);
public void AutoLayoutShapeElements (System.Collections.ICollection shapeElementCollection);
member this.AutoLayoutShapeElements : System.Collections.ICollection -> unit
Public Sub AutoLayoutShapeElements (shapeElementCollection As ICollection)

Parameters

shapeElementCollection
ICollection

Applies to

AutoLayoutShapeElements(ICollection, VGRoutingStyle, PlacementValueStyle, Boolean)

Important

This API is not CLS-compliant.

Automatically lays out the passed collection of ShapeElements.

public:
 void AutoLayoutShapeElements(System::Collections::ICollection ^ shapeElementCollection, Microsoft::VisualStudio::Modeling::Diagrams::GraphObject::VGRoutingStyle routingStyle, Microsoft::VisualStudio::Modeling::Diagrams::GraphObject::PlacementValueStyle placementStyle, bool route);
[System.CLSCompliant(false)]
public void AutoLayoutShapeElements (System.Collections.ICollection shapeElementCollection, Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.VGRoutingStyle routingStyle, Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.PlacementValueStyle placementStyle, bool route);
[<System.CLSCompliant(false)>]
member this.AutoLayoutShapeElements : System.Collections.ICollection * Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.VGRoutingStyle * Microsoft.VisualStudio.Modeling.Diagrams.GraphObject.PlacementValueStyle * bool -> unit
Public Sub AutoLayoutShapeElements (shapeElementCollection As ICollection, routingStyle As VGRoutingStyle, placementStyle As PlacementValueStyle, route As Boolean)

Parameters

shapeElementCollection
ICollection

The collection of ShapeElements to automatically layout.

routingStyle
VGRoutingStyle

The line routing style to use. If this is different from the diagram's current routing style, calling this method will change the routing style to match.

placementStyle
PlacementValueStyle

The placement style to use when repositioning shapes.

route
Boolean

True if lines should be re-routed, false otherwise.

Attributes

Applies to