Class Range
Represents a range.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Core.DataStructures
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class Range
Constructors
Range(Int32, Int32)
Initializes a new instance of the Range class.
Declaration
public Range(int start, int end)
Parameters
System.Int32
start
The start. |
System.Int32
end
The end. |
Properties
End
Gets the end.
Declaration
public int End { get; }
Property Value
System.Int32
The end. |
Length
Gets the length.
Declaration
public long Length { get; }
Property Value
System.Int64
The length. |
Start
Gets the start.
Declaration
public int Start { get; }
Property Value
System.Int32
The start. |
Methods
CreateOrExpand(Range, Int32)
Creates range or expands an existing one by specified index.
Declaration
public static Range CreateOrExpand(Range range, int index)
Parameters
Range
range
The range. |
System.Int32
index
The index. |
Returns
Range
The result range. |
Expand(Int32)
Expands by the specified index.
Declaration
public Range Expand(int index)
Parameters
System.Int32
index
The index. |
Returns
Range
The expanded range. |
Max(Range, Range)
Finds the max range of two ranges.
Declaration
public static Range Max(Range firstRange, Range secondRange)
Parameters
Range
firstRange
The first range. |
Range
secondRange
The second range. |
Returns
Range
The result range. |
MaxOrNull(Range, Range)
Returns the max range or null if both ranges are null.
Declaration
public static Range MaxOrNull(Range firstRange, Range secondRange)
Parameters
Range
firstRange
The first range. |
Range
secondRange
The second range. |
Returns
Range
The maximum range or null. |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents the current System.Object. |