Partager via


ShapeElement.FindFreeArea Method

Definition

Find a free area in the shape or diagram's graph.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::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 Microsoft.VisualStudio.Modeling.Diagrams.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 this.FindFreeArea : double * double * double * double * double * double * double * double * double * double * double * double -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
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

Parameters

aimForX
Double

initial center X to aim for

aimForY
Double

initial center Y to aim for

averageConnectivityX
Double

connectivity X

averageConnectivityY
Double

connectivity Y

spacingX
Double

grid X to use for increment

spacingY
Double

grid Y to use for increment

areaDeltaX
Double

delta X of the area to find

areaDeltaY
Double

delta Y of the area to find

boundsX0
Double

bound LEFT not to exceed when searching (very large - no bounds)

boundsY0
Double

bound BOTTOM not to exceed when searching (very large - no bounds)

boundsX1
Double

bound RIGHT not to exceed when searching (very large - no bounds)

boundsY1
Double

bound TOP not to exceed when searching (very large - no bounds)

Returns

Center position of free area found

Applies to