Compartilhar via


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)

Syntax

'Declaração
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.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.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace