[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.ConnectionShape.AutoLayout

AutoLayout Method

AutoLayout(Rectangle, Rectangle, bool, bool, bool, bool, IWorksheet)

Layouts the connection shape.

Declaration
public void AutoLayout(Rectangle firstBounds, Rectangle secondBounds, bool updateAdjustments, bool updateParentBoundary = true, bool applyDisplayFormulas = false, bool updateBoundary = true, IWorksheet contextWorksheet = null)
Public Sub AutoLayout(firstBounds As Rectangle, secondBounds As Rectangle, updateAdjustments As Boolean, Optional updateParentBoundary As Boolean = True, Optional applyDisplayFormulas As Boolean = False, Optional updateBoundary As Boolean = True, Optional contextWorksheet As IWorksheet = Nothing)
Parameters
Type Name Description
Rectangle firstBounds

The first bound.

Rectangle secondBounds

The second bound.

bool updateAdjustments

Update the adjustment.

bool updateParentBoundary

Update parent boundary

bool applyDisplayFormulas

Apply display formula.

bool updateBoundary

Update boundary

IWorksheet contextWorksheet

A context worksheet

AutoLayout(Rectangle, Rectangle, Point, Point, bool, bool, bool, bool, IWorksheet)

Layouts the connection shape automatically.

Declaration
public void AutoLayout(Rectangle firstBounds, Rectangle secondBounds, Point startPoint, Point endPoint, bool updateAdjustments, bool updateParentBoundary = true, bool applyDisplayFormulas = false, bool updateBoundary = true, IWorksheet contextWorksheet = null)
Public Sub AutoLayout(firstBounds As Rectangle, secondBounds As Rectangle, startPoint As Point, endPoint As Point, updateAdjustments As Boolean, Optional updateParentBoundary As Boolean = True, Optional applyDisplayFormulas As Boolean = False, Optional updateBoundary As Boolean = True, Optional contextWorksheet As IWorksheet = Nothing)
Parameters
Type Name Description
Rectangle firstBounds

The first bound.

Rectangle secondBounds

The second bound.

Point startPoint

The start point of the connection shape.

Point endPoint

The end point of the connection shape.

bool updateAdjustments

Update the adjustment.

bool updateParentBoundary

Update parent boundary.

bool applyDisplayFormulas

Apply display formula.

bool updateBoundary

Update boundary

IWorksheet contextWorksheet

A context worksheet

AutoLayout(Point, Point, bool, bool, IWorksheet)

Layouts the connection shape to fit 2 specified points.

Declaration
public void AutoLayout(Point startPoint, Point endPoint, bool updateParentBoundary = true, bool applyDisplayFormulas = false, IWorksheet contextWorksheet = null)
Public Sub AutoLayout(startPoint As Point, endPoint As Point, Optional updateParentBoundary As Boolean = True, Optional applyDisplayFormulas As Boolean = False, Optional contextWorksheet As IWorksheet = Nothing)
Parameters
Type Name Description
Point startPoint

The start point of the connection shape.

Point endPoint

The end point of the connection shape.

bool updateParentBoundary
bool applyDisplayFormulas

Apply display formula.

IWorksheet contextWorksheet

a context worksheet.

AutoLayout(bool, bool)

The connection shape will layout automatically to fit with current connection sites.

Declaration
public void AutoLayout(bool applyDisplayFormulas = false, bool updateBoundary = true)
Public Sub AutoLayout(Optional applyDisplayFormulas As Boolean = False, Optional updateBoundary As Boolean = True)
Parameters
Type Name Description
bool applyDisplayFormulas

Apply display formula.

bool updateBoundary

Update boundary