NShape Reference
Shape.CalculateAbsolutePosition Method

<< Click to Display Table of Contents >>

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

NShape Reference
Shape.CalculateAbsolutePosition Method

Previous pageReturn to chapter overviewNext page

Transforms a relative position into absolute coordinates.

Syntax

public abstract Point CalculateAbsolutePosition(
    RelativePosition relativePosition
)

Description

Use this function to know where the relative position is actually located. The relative position must be obtained by the same shape through CalculateRelativePosition.

Parameters

Name

Description

relativePosition

Specifies a relative position for this shape.

Return Value

Absolute coordinates of the point defined by relativePosition.

Exceptions

Name

Description

ArgumentException

relativePosition is not a valid relative position for the shape instance.