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


OrderToken.CompareTo Method

Compares this order token with the specified order token.

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

Syntax

'Declaration
Public Overridable Function CompareTo ( _
    other As OrderToken _
) As Integer
public virtual int CompareTo(
    OrderToken other
)
public:
virtual int CompareTo(
    OrderToken^ other
)
abstract CompareTo : 
        other:OrderToken -> int 
override CompareTo : 
        other:OrderToken -> int 
public function CompareTo(
    other : OrderToken
) : int

Parameters

Return Value

Type: System.Int32
0 when the tokens have an equal order priority, -1 if this order comes before the specified order, 1 otherwise.

Implements

IComparable<T>.CompareTo(T)

Remarks

The comparison for OrderToken objects that do not belong to the same chain of OrderToken objects is resolved non-deterministically.

.NET Framework Security

See Also

Reference

OrderToken Class

Microsoft.Windows.Design Namespace

OrderTokenPrecedence

AdornerOrder

PropertyOrder

Other Resources

WPF Designer Extensibility