RelativePoint Structure

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.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Structure RelativePoint
public struct RelativePoint
public value class RelativePoint
[<Sealed>]
type RelativePoint =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The RelativePoint type exposes the following members.

Constructors

  Name Description
Public method RelativePoint(RelativePosition, Point) Initializes a new instance of the RelativePoint class for a specified a non-relative point.
Public method RelativePoint(RelativePosition, Double, Double) Initializes a new instance of the RelativePoint structure for specified RelativePosition, X, and Y values.

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

Methods

  Name Description
Public method Equals(Object) Specifies whether this RelativePoint contains the same coordinates as the specified Object. (Overrides ValueType.Equals(Object).)
Public method Equals(RelativePoint) Specifies whether this RelativePoint contains the same coordinates as the specified RelativePoint.
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(Point to RelativePoint) 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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility