Class RangeValuePair<T>
Holds a range together with a value assigned to the range.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.CellGrid.ScrollAxis
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class RangeValuePair<T> : IComparable
Type Parameters
Name |
---|
T |
Constructors
RangeValuePair(Int32)
Initializes a new instance of the RangeValuePair<T> class.
Declaration
public RangeValuePair(int start)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | The start and end of the range. |
RangeValuePair(Int32, Int32, T)
Initializes a new instance of the RangeValuePair<T> class.
Declaration
public RangeValuePair(int start, int count, T value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | The start. |
System.Int32 | 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 |
---|---|
System.Int32 | The count. |
End
Gets or sets the end of the range.
Declaration
public int End { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The end. |
Start
Gets or sets the start of the range.
Declaration
public int Start { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | 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 |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Int32 | 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 System.String with state information about this object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns a System.String with state information about this object. |