NShape Reference
RelativePosition Structure

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
RelativePosition Structure

Previous pageReturn to chapter overviewNext page

Defines a position relative to a shape.

Syntax

public class RelativePosition

Description

This structure is a generic type for relative positions. The meaning of A and B completely depends on the shape class, which fills the structure in the CalculateRelativePosition method and reads it in the CalculateAbsolutePosition method. Therefore, a RelativePosition value received from a given shape must only be passed to the identical shape for reading.

Public Properties and Fields

Name

Description

A

Component 'A' of the relative position.

B

Component 'B' of the relative position

Empty

Represents an uninitialized, empty relative position.

Public Methods

Name

Description

Equals

Returns true if the given object is a RelativePosition and its value equals the value of the current RelativePosition.

GetHashCode

Calculates a hash code for the current RelativePosition.

Operators

Name

Description

!=

Tests inequality of two RelativePosition values.

==

Tests equality of two RelativePosition values.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape