Share via


SPCalendarViewStyle.CompareTo method

Compares the current calendar view style with another calendar view style.

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

Syntax

'Declaration
Public Function CompareTo ( _
    otherViewStyle As SPCalendarViewStyle _
) As Integer
'Usage
Dim instance As SPCalendarViewStyle
Dim otherViewStyle As SPCalendarViewStyle
Dim returnValue As Integer

returnValue = instance.CompareTo(otherViewStyle)
public int CompareTo(
    SPCalendarViewStyle otherViewStyle
)

Parameters

Return value

Type: System.Int32

Value

Condition

Less than zero

The current calendar view style precedes the otherViewStyle in the sort order.

Zero

This instance has the same position in the sort order as otherViewStyle.

Greater than zero

The current calendar view style follows the otherViewStyle in the sort order.

Implements

IComparable<T>.CompareTo(T)

Remarks

This method returns the comparison result based on the comparison result of the Sequence property.

See also

Reference

SPCalendarViewStyle class

SPCalendarViewStyle members

Microsoft.SharePoint namespace