This topic has not yet been rated - Rate this topic

NodeShape.AutoLayoutChildShapes Method

Positions the collection of shapes in the diagram automatically.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public void AutoLayoutChildShapes(
	IDictionary shapeElementMap
)

Parameters

shapeElementMap
Type: System.Collections.IDictionary
The collection of shapes to automatically position.

If the collection contains shapes with relative geometry (for example, pasting two shapes A and B, where component shape B is to the above-and-right of component shape A), we will maintain their relative geometry, and position them in an area that can accommodate their geometry. This area may be off-screen. If pasting inside a compound shape, that compound shape will grow as needed to fit the new children. (This scenario will generally happen for copy/paste.)

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ