ShapeElement.FindFreeArea Method
Finds an empty area on the grid for the shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Function FindFreeArea ( _
aimForX As Double, _
aimForY As Double, _
averageConnectivityX As Double, _
averageConnectivityY As Double, _
spacingX As Double, _
spacingY As Double, _
areaDeltaX As Double, _
areaDeltaY As Double, _
boundsX0 As Double, _
boundsY0 As Double, _
boundsX1 As Double, _
boundsY1 As Double _
) As PointD
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
)
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
)
member FindFreeArea :
aimForX:float *
aimForY:float *
averageConnectivityX:float *
averageConnectivityY:float *
spacingX:float *
spacingY:float *
areaDeltaX:float *
areaDeltaY:float *
boundsX0:float *
boundsY0:float *
boundsX1:float *
boundsY1:float -> PointD
public function FindFreeArea(
aimForX : double,
aimForY : double,
averageConnectivityX : double,
averageConnectivityY : double,
spacingX : double,
spacingY : double,
areaDeltaX : double,
areaDeltaY : double,
boundsX0 : double,
boundsY0 : double,
boundsX1 : double,
boundsY1 : double
) : PointD
Parameters
aimForX
Type: System.DoubleThe x-coordinate where the search should start.
aimForY
Type: System.DoubleThe y-coordinate where the search should start.
averageConnectivityX
Type: System.DoubleThe x-coordinate for the connection point.
averageConnectivityY
Type: System.DoubleThe y-coordinate for the connection point.
spacingX
Type: System.DoubleThe x-coordinate to increment on the grid.
spacingY
Type: System.DoubleThe y-coordinate to increment on the grid.
areaDeltaX
Type: System.DoubleThe x-coordinate for the delta of the area to find.
areaDeltaY
Type: System.DoubleThe y-coordinate for the delta of the area to find.
boundsX0
Type: System.DoubleThe left bound to search within.
boundsY0
Type: System.DoubleThe bottom bound to search within.
boundsX1
Type: System.DoubleThe right bound to search within.
boundsY1
Type: System.DoubleThe top bound to search within.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The center point in the empty area.
.NET Framework Security
- 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.