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 | |
---|---|---|
RelativePoint(RelativePosition, Point) | Initializes a new instance of the RelativePoint class for a specified a non-relative point. | |
RelativePoint(RelativePosition, Double, Double) | Initializes a new instance of the RelativePoint structure for specified RelativePosition, X, and Y values. |
Top
Properties
Name | Description | |
---|---|---|
Position | Gets or sets the relative position of the RelativePoint structure. | |
X | Gets or sets the X coordinate of the RelativePoint structure. | |
Y | Gets or sets the Y coordinate of the RelativePoint structure. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Specifies whether this RelativePoint contains the same coordinates as the specified Object. (Overrides ValueType.Equals(Object).) | |
Equals(RelativePoint) | Specifies whether this RelativePoint contains the same coordinates as the specified RelativePoint. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FromPoint | Converts the specified Point to a RelativePoint that is relative to the top left corner. | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Operators
Name | Description | |
---|---|---|
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. | |
Implicit(Point to RelativePoint) | Converts the specified Point structure to a RelativePoint structure. | |
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