Share via


OrderToken Class

A generic class that identifies the sort order of hierarchical items.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class OrderToken _
    Implements IComparable(Of OrderToken)
public abstract class OrderToken : IComparable<OrderToken>
public ref class OrderToken abstract : IComparable<OrderToken^>
[<AbstractClass>]
type OrderToken =  
    class
        interface IComparable<OrderToken>
    end
public abstract class OrderToken implements IComparable<OrderToken>

The OrderToken type exposes the following members.

Constructors

  Name Description
Protected method OrderToken Initializes a new instance of the OrderToken class based on the specified referenced OrderToken, precedence, and conflict resolution semantics.

Top

Methods

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

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two specified order tokens are equal.
Public operatorStatic member GreaterThan Determines whether the first specified order token is greater than the second.
Public operatorStatic member Inequality Determines whether two specified order tokens are not equal.
Public operatorStatic member LessThan Determines whether the first specified order token is less than the second.

Top

Remarks

Use the OrderToken class to define priority that is based on some predefined defaults or based on other OrderToken classes.

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 Namespace

OrderTokenPrecedence

AdornerOrder

PropertyOrder

Other Resources

WPF Designer Extensibility