Share via


PaintGradientStop.CompareTo(PaintGradientStop) Method

Definition

Compares the current gradient stop with another gradient stop based on their offset values.

public:
 virtual int CompareTo(Microsoft::Maui::Graphics::PaintGradientStop ^ obj);
public int CompareTo(Microsoft.Maui.Graphics.PaintGradientStop obj);
abstract member CompareTo : Microsoft.Maui.Graphics.PaintGradientStop -> int
override this.CompareTo : Microsoft.Maui.Graphics.PaintGradientStop -> int
Public Function CompareTo (obj As PaintGradientStop) As Integer

Parameters

obj
PaintGradientStop

The gradient stop to compare with this instance.

Returns

A value less than zero if this instance's offset is less than the other instance's offset; zero if they are equal; a value greater than zero if this instance's offset is greater.

Implements

Applies to