Class RangeValuePair<T>
Holds a range together with a value assigned to the range.
Implements
Inherited Members
Namespace: Syncfusion.Maui.GridCommon.ScrollAxis
Assembly: Syncfusion.Maui.GridCommon.dll
Syntax
public class RangeValuePair<T> : IComparable
Type Parameters
| Name |
|---|
| T |
Constructors
RangeValuePair(int)
Initializes a new instance of the RangeValuePair<T> class.
Declaration
public RangeValuePair(int start)
Parameters
| Type | Name | Description |
|---|---|---|
| int | start | The start and end of the range. |
RangeValuePair(int, int, T)
Initializes a new instance of the RangeValuePair<T> class.
Declaration
public RangeValuePair(int start, int count, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | start | The start. |
| int | count | The count. |
| T | value | The value. |
Properties
Count
Gets or sets the count of the range.
Declaration
public int Count { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The count. |
End
Gets or sets the end of the range.
Declaration
public int End { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The end. |
Start
Gets or sets the start of the range.
Declaration
public int Start { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The start. |
Value
Gets or sets the value.
Declaration
public T Value { get; set; }
Property Value
| Type | Description |
|---|---|
| T | The value. |
Methods
CompareTo(object)
Compares the current range with the range of the other object. The value is ignored.
Declaration
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | An object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than |
ToString()
Returns a string with state information about this object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Returns a string with state information about this object. |