MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Length Structure / CompareTo Method / CompareTo(Object) Method
An System.Object to compare with the current instance.
Example

In This Topic
CompareTo(Object) Method
In This Topic
Compares the current Length instance to a specified object and returns an indication of their relative values.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal obj As Object _
) As Integer
 

Parameters

obj
An System.Object to compare with the current instance.

Return Value

An System.Int32 value indicating the relative order of the objects being compared.
Example
var length1 = new Length("10in");
var length2 = new Length("5in");
int comparison = length1.CompareTo(length2); // 1
See Also