Share via

AdornerOrder Class

Specifies the z-order of adorners in Design view.

Inheritance Hierarchy


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


Public NotInheritable Class AdornerOrder _
    Inherits OrderToken
public sealed class AdornerOrder : OrderToken
public ref class AdornerOrder sealed : public OrderToken
type AdornerOrder =  
        inherit OrderToken
public final class AdornerOrder extends OrderToken

The AdornerOrder type exposes the following members.


  Name Description
Public propertyStatic member Background Gets a value indicating that the adorner is placed after the content.
Public propertyStatic member Content Gets a value indicating that the adorner is placed with other content adorners. This is the default.
Public propertyStatic member Foreground Gets a value indicating that the adorner is placed before content adorners.



  Name Description
Public method CompareTo Compares this order token with the specified order token. (Inherited from OrderToken.)
Public methodStatic member CreateAbove Creates a new adorner order that places the adorner above the provided reference in the z-order.
Public methodStatic member CreateBelow Creates a new adorner order that places the adorner below the provided reference in the z-order.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from OrderToken.)
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 Serves as a hash function for a particular type. (Inherited from OrderToken.)
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.)
Protected method ResolveConflict Called by the default CompareTo implementation when two OrderToken objects appear to be equivalent. (Inherited from OrderToken.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)



Use AdornerOrder to specify the z-order of your adorner panel by assigning an AdornerOrder value to the Order property. If not specified, the default adorner order is Content. Adorners that have the same relative ordering are ordered in the same order in which they are added.

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


Microsoft.Windows.Design.Interaction Namespace


Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture