ShapeElement.FindFreeArea Method

Finds an empty area on the grid for the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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: Double

    The x-coordinate where the search should start.

  • aimForY
    Type: Double

    The y-coordinate where the search should start.

  • averageConnectivityX
    Type: Double

    The x-coordinate for the connection point.

  • averageConnectivityY
    Type: Double

    The y-coordinate for the connection point.

  • spacingX
    Type: Double

    The x-coordinate to increment on the grid.

  • spacingY
    Type: Double

    The y-coordinate to increment on the grid.

  • areaDeltaX
    Type: Double

    The x-coordinate for the delta of the area to find.

  • areaDeltaY
    Type: Double

    The y-coordinate for the delta of the area to find.

  • boundsX0
    Type: Double

    The left bound to search within.

  • boundsY0
    Type: Double

    The bottom bound to search within.

  • boundsX1
    Type: Double

    The right bound to search within.

  • boundsY1
    Type: Double

    The top bound to search within.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The center point in the empty area.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace