Share via


AdornerPlacementValue Structure

Represents a single value in an AdornerPlacementCollection.

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

Syntax

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

The AdornerPlacementValue type exposes the following members.

Constructors

  Name Description
Public method AdornerPlacementValue Initializes a new instance of the AdornerPlacementValue class.

Top

Properties

  Name Description
Public property Contribution Gets or sets the distance the placement term is affected by.
Public property Term Gets or sets the placement term affected by this contribution amount.

Top

Methods

  Name Description
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(AdornerPlacementValue) Returns a value indicating whether this instance is equal to a specified AdornerPlacementValue.
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 structure. (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 Determines whether the two specified AdornerPlacementValue objects have the same value.
Public operatorStatic member Inequality Determines whether the two specified AdornerPlacementValue objects have different values.

Top

Remarks

The AdornerPlacementValue type is used by size- and position-related types, such as the IAdornerPlacement interface. A placement values has a term that indicates how to interpret it (top, bottom, left, right), and a contribution to the adorner layout, which is a double.

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

AdornerPlacementCollection

AdornerPanel

IAdornerPlacement

Other Resources

Walkthrough: Implementing a Rail Inside a Control

Understanding WPF Designer Extensibility