ShapeElement.FindFreeArea Method
Finds an empty area on the grid for the shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public PointD FindFreeArea( double aimForX, double aimForY, double averageConnectivityX, double averageConnectivityY, double spacingX, double spacingY, double areaDeltaX, double areaDeltaY, double boundsX0, double boundsY0, double boundsX1, double boundsY1 )
Parameters
- aimForX
- Type: System.Double
The x-coordinate where the search should start.
- aimForY
- Type: System.Double
The y-coordinate where the search should start.
- averageConnectivityX
- Type: System.Double
The x-coordinate for the connection point.
- averageConnectivityY
- Type: System.Double
The y-coordinate for the connection point.
- spacingX
- Type: System.Double
The x-coordinate to increment on the grid.
- spacingY
- Type: System.Double
The y-coordinate to increment on the grid.
- areaDeltaX
- Type: System.Double
The x-coordinate for the delta of the area to find.
- areaDeltaY
- Type: System.Double
The y-coordinate for the delta of the area to find.
- boundsX0
- Type: System.Double
The left bound to search within.
- boundsY0
- Type: System.Double
The bottom bound to search within.
- boundsX1
- Type: System.Double
The right bound to search within.
- boundsY1
- Type: System.Double
The top bound to search within.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe center point in the empty area.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.