WorksheetGetRegionsBounds Method

Calculates bounds of the selected Regions.

Definition

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

Parameters

selected  Boolean
Whether selected Regions only must be taken in account.
sizeLimit  Int32  (Optional)
Maximum limit of the pixels count. Set 0 for no limits.

Return Value

Rectangle
Bounding rectangle for the selected Regions.

See Also