NShape Reference
ToolCache.GetCapBounds Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ToolCache Class >

NShape Reference
ToolCache.GetCapBounds Method

Previous pageReturn to chapter overviewNext page

Returns the untransformed axis aligned bounding rectangle of the line cap defined by the given styles.

Syntax

public static Rectangle GetCapBounds(ICapStyle capStyle, ILineStyle lineStyle, float angleDeg)

Description

Returns the untransformed axis aligned bounding rectangle of the line cap defined by the given styles.

Parameters

Name

Description

capStyle

Specifies the parameters for the cap's shape and positioning relative to the line.

lineStyle

Defines the cap's outline.

angleDeg

Defines the cap's orientation in degrees.

Exceptions

Exception

Condition

ArgumentNullException

Any of the styles is null.