This topic has not yet been rated - Rate this topic

ShapeElement.FindFreeArea Method

Finds an empty area on the grid for the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
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.PointD
The center point in the empty area.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ