ClassRange
Represents an inclusive integer range with a start and end index, used for row, column, and cell indexing operations.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Core.DataStructures
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Range
Inheritance: objectRange
Constructors
Range(int, int)
Initializes a new instance of the Range class with the specified start and end indices.
Properties
End
Gets the inclusive ending index of the range.
Length
Gets the total number of indices covered by this range, calculated as (End - Start + 1).
Methods
CreateOrExpand(Range, int)
Creates a new single-index range if the input range is null, or expands the existing range to include the specified index.
Expand(int)
Expands the range to include the specified index and returns the resulting range.
Max(Range, Range)
Computes the maximum bounding range that encompasses both input ranges.
MaxOrNull(Range, Range)
Returns the maximum bounding range of two ranges, or null if both ranges are null.