Documents for PDF, .NET Edition Documentation
Compare Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > IStructComparer<T> Interface : Compare Method
The first struct to compare.
The second struct to compare.
Compares two structs and returns a value indicating whether one is less than, equal to, or greater than the other.
Syntax
'Declaration
 
Function Compare( _
   ByRef x As T, _
   ByRef y As T _
) As System.Integer
System.int Compare( 
   ref T x,
   ref T y
)

Parameters

x
The first struct to compare.
y
The second struct to compare.

Return Value

A signed integer that indicates the relative values of x and y. Value Meaning Less than 0 x is less than y. 0 x equals y. Greater than 0 x is greater than y.
See Also

Reference

IStructComparer<T> Interface
IStructComparer<T> Members