CompareTo(Object) Method (ImageRegion)
In This Topic
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Syntax
'Declaration
Public Function CompareTo( _
ByVal As System.Object _
) As System.Int32
public System.Int32 CompareTo(
System.Object
)
public: System.Int32 CompareTo(
System.Object
)
public:
System.Int32 CompareTo(
System.Object
)
Parameters
- obj
- An object to compare with this instance.
Return Value
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes obj in the sort order. Zero This instance occurs in the same position in the sort order as obj. Greater than zero This instance follows obj in the sort order.
Requirements
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5
See Also