Click or drag to resize
CellRangeGetSubrangeRelative Method
Returns new cell range using relative indexing.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public CellRange GetSubrangeRelative(
	int relativeRow,
	int relativeColumn,
	int width,
	int height
)

Parameters

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

Return Value

Type: CellRange
New cell range using relative indexing.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionArguments are out of range.
Remarks
New cell range must be within this cell range.
See Also