Delen via


RelativePoint Members

Include Protected Members
Include Inherited Members

Defines a point that consists of an X and Y location and a RelativePosition class that defines the relationship of those coordinates to some other object.

The RelativePoint type exposes the following members.

Constructors

 

Name

Description

Public method

RelativePoint

Overloaded. Initializes a new instance of the RelativePoint class.

Top

Methods

 

Name

Description

Public method

Equals

Overloaded. Specifies whether RelativePoint objects are equal.

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public methodStatic member

FromPoint

Converts the specified Point to a RelativePoint that is relative to the top left corner.

Public method

GetHashCode

Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Operators

 

Name

Description

Public operatorStatic member

Equality

Compares two RelativePoint structures. The result specifies whether the values of the Position, X, and Y properties of the two RelativePoint structures are equal.

Public operatorStatic member

Implicit

Converts the specified Point structure to a RelativePoint structure.

Public operatorStatic member

Inequality

Compares two RelativePoint structures. The result specifies whether the values of the Position, X, or Y properties of the two RelativePoint structures are not equal.

Top

Properties

 

Name

Description

Public property

Position

Gets or sets the relative position of the RelativePoint structure.

Public property

X

Gets or sets the X coordinate of the RelativePoint structure.

Public property

Y

Gets or sets the Y coordinate of the RelativePoint structure.

Top

See Also

Reference

RelativePoint Structure

Microsoft.Windows.Design.Interaction Namespace