Finds an empty area on the grid for the shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
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
'使用
Dim instance As ShapeElement
Dim aimForX As Double
Dim aimForY As Double
Dim averageConnectivityX As Double
Dim averageConnectivityY As Double
Dim spacingX As Double
Dim spacingY As Double
Dim areaDeltaX As Double
Dim areaDeltaY As Double
Dim boundsX0 As Double
Dim boundsY0 As Double
Dim boundsX1 As Double
Dim boundsY1 As Double
Dim returnValue As PointD
returnValue = instance.FindFreeArea(aimForX, _
aimForY, averageConnectivityX, averageConnectivityY, _
spacingX, spacingY, areaDeltaX, areaDeltaY, _
boundsX0, boundsY0, boundsX1, 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
)
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 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.
Permissions
- 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.