Поделиться через


AdornerOrder Class

Specifies the z-order of adorners in Design view.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.OrderToken
    Microsoft.Windows.Design.Interaction.AdornerOrder

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

Syntax

'Declaration
Public NotInheritable Class AdornerOrder _
    Inherits OrderToken
public sealed class AdornerOrder : OrderToken
public ref class AdornerOrder sealed : public OrderToken
[<Sealed>]
type AdornerOrder =  
    class
        inherit OrderToken
    end
public final class AdornerOrder extends OrderToken

The AdornerOrder type exposes the following members.

Properties

  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.

Top

Methods

  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.)

Top

Remarks

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

Reference

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture