FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
OffsetRange Function

Increments a Cell range by an offset.

Pascal
function OffsetRange(const CellRange: TXlsCellRange; const DeltaRow: integer; const DeltaCol: integer): TXlsCellRange;
C++
TXlsCellRange OffsetRange(const TXlsCellRange CellRange, const int DeltaRow, const int DeltaCol);
Parameters 
Description 
const CellRange: TXlsCellRange 
Original cell range 
const DeltaRow: integer 
Rows to add to the range (both top and bottom rows) 
const DeltaCol: integer 
Columns to add to the range (both left and right columns) 

A new range with the rows and columns incremented or decremented.

This is a simple method that will take a cell range, increment its columns and rows by a given value, and return the new range.

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!