WorksheetGetRegionsBounds Method

Determines the full bounding rectangle covering all specified Regions.

Definition

Namespace: SMath.Controls
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.73.9126.0
C#
public abstract Rectangle GetRegionsBounds(
	bool selected,
	int sizeLimit = 0
)

Parameters

selected  Boolean
to consider only selected Regions, to consider any Regions on the worksheet.
sizeLimit  Int32  (Optional)
Maximal allowed area of the bounding rectangle. Pass 0 for no limit.

Return Value

Rectangle
Full bounding rectangle for the specified Regions.

See Also