SPRibbonMenuItem.IComparable<SPRibbonMenuItem>.CompareTo method

Compares the SPRibbonMenuItem object with a specified SPRibbonMenuItem object.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Private Function CompareTo ( _
    other As SPRibbonMenuItem _
) As Integer Implements IComparable(Of SPRibbonMenuItem).CompareTo
'Usage
Dim instance As SPRibbonMenuItem
Dim other As SPRibbonMenuItem
Dim returnValue As Integer

returnValue = CType(instance, IComparable(Of SPRibbonMenuItem)).CompareTo(other)
intIComparable<SPRibbonMenuItem>.CompareTo(
    SPRibbonMenuItem other
)

Parameters

Return value

Type: System.Int32
An integer value that indicates the results of the comparison between the two objects.

Implements

IComparable<T>.CompareTo(T)

See also

Reference

SPRibbonMenuItem class

SPRibbonMenuItem members

Microsoft.SharePoint.WebControls namespace