RelativeValue Structure

Represents a coordinate on the designer.

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

Syntax

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

The RelativeValue type exposes the following members.

Constructors

  Name Description
Public method RelativeValue Initializes a new instance of the RelativeValue structure using a RelativePosition and a value.

Top

Properties

  Name Description
Public property Position Gets or sets the RelativePosition that identifies the kind for this value.
Public property Value Gets or sets the actual value of this position or coordinate.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to this RelativeValue structure. (Overrides ValueType.Equals(Object).)
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 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 RelativeValue structures.
Public operatorStatic member Inequality Compares two RelativeValue structures.

Top

Remarks

A RelativeValue is known by some relative type, such as Left or 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