共用方式為


OpenXmlComparableSimpleValue<T>.CompareTo Method

Definition

Overloads

CompareTo(OpenXmlComparableSimpleValue<T>)
CompareTo(Object)
CompareTo(T)

CompareTo(OpenXmlComparableSimpleValue<T>)

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.

public int CompareTo (DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<T> other);
public int CompareTo (DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<T>? other);
abstract member CompareTo : DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<'T (requires 'T : struct)> -> int
override this.CompareTo : DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<'T (requires 'T : struct)> -> int
Public Function CompareTo (other As OpenXmlComparableSimpleValue(Of T)) As Integer

Parameters

Returns

Implements

Applies to

CompareTo(Object)

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.

public int CompareTo (object obj);
public int CompareTo (object? obj);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (obj As Object) As Integer

Parameters

obj
Object

Returns

Implements

Applies to

CompareTo(T)

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.

public int CompareTo (T other);
abstract member CompareTo : 'T -> int
override this.CompareTo : 'T -> int
Public Function CompareTo (other As T) As Integer

Parameters

other
T

Returns

Implements

Applies to