GemBox.Spreadsheet

CellRange.GetSubrangeRelative Method 

Returns new cell range using relative indexing.

public CellRange GetSubrangeRelative(
   int relativeRow,
   int relativeColumn,
   int width,
   int height
);

Parameters

relativeRow
Relative index of the first row.
relativeColumn
Relative index of the first column.
width
Width of new cell range in columns.
height
Height of new cell range in rows.

Remarks

New cell range must be within this cell range.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException Thrown if arguments are out of range.

See Also

CellRange Class | GemBox.Spreadsheet Namespace | Width | Height | GetSubrangeAbsolute | GetSubrange