TXlsCellRange.CalcTopCell Method
Returns the minimum top and left coordinates for an array of ranges. If for example you have C7 and D5, this method will return C5
Syntax
Unit: FlexCel.Core
class function TXlsCellRange.CalcTopCell(const ranges: TArray<TXlsCellRange>; const ResultBase1: Boolean): TCellAddress; static;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | ranges | TArray<TXlsCellRange> | An array of ranges, 1 based. |
const | ResultBase1 | Boolean | If true, the address will be in base 1 (1, 1 is the top cell). If false, (0, 0) will be the top cell for the returned address. |