ShapeElement.FindFreeArea Method

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.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.

  • boundsY0
    Type: System.Double

    The bottom bound to search within.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD

The center point in the empty area.

Permissions

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace