NShape Reference
GetBoundingRectangle Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
GetBoundingRectangle Method

Previous pageReturn to chapter overviewNext page

Retrieves an axis-aligned bounding box for the shape.

Syntax

public abstract Rectangle GetBoundingRectangle(bool tight);

Description

Calculates a rectangle that encloses the shape closely. The edges of the rectangle are parallel to the coordinate axis.

Parameters

Name

Description

tight

If true, the bounding rectangle includes the control points. If false, it encloses the shape itself closely.

Return Value

Bounding rectangle of the the shape.

Exceptions

None