@mescius/spread-sheets 17.0.7 → 17.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -12934,6 +12934,14 @@ declare module GC{
|
|
12934
12934
|
}
|
12935
12935
|
|
12936
12936
|
|
12937
|
+
export interface IRange{
|
12938
|
+
row: number;
|
12939
|
+
col: number;
|
12940
|
+
rowCount: number;
|
12941
|
+
colCount: number;
|
12942
|
+
}
|
12943
|
+
|
12944
|
+
|
12937
12945
|
export interface IRangeChangedEventArgs{
|
12938
12946
|
sheet: GC.Spread.Sheets.Worksheet;
|
12939
12947
|
sheetName: string;
|
@@ -16716,13 +16724,16 @@ declare module GC{
|
|
16716
16724
|
/**
|
16717
16725
|
* Gets or sets the formula for the cell.
|
16718
16726
|
* @param {string} [value] The cell formula.
|
16727
|
+
* @param {boolean} [autoAdjustReference] Whether to adjust the relative reference of each cell. It's false if omitted.
|
16719
16728
|
* @returns {string|GC.Spread.Sheets.CellRange} If no value is set, returns the cell formula; otherwise, returns the cell.
|
16720
16729
|
* @example
|
16721
16730
|
* ```
|
16722
16731
|
* activeSheet.getCell(0,2).formula("DATEDIF(DATE(2003,1,1),DATE(2016,1,1),\"Y\")");
|
16732
|
+
* activeSheet.getRange(2,2,100,1).formula("=A3+$A$1"); // all the cells are "=A3+$A$1"
|
16733
|
+
* activeSheet.getRange(2,2,100,1).formula("=A3+$A$1", true); // the first cell is "=A3+$A$1", the second cell is "=A4+$A$1", ...
|
16723
16734
|
* ```
|
16724
16735
|
*/
|
16725
|
-
formula(value?: string): any;
|
16736
|
+
formula(value?: string, autoAdjustReference?: boolean): any;
|
16726
16737
|
/**
|
16727
16738
|
* Gets or sets the horizontal alignment of the contents of the cell.
|
16728
16739
|
* @param {GC.Spread.Sheets.HorizontalAlign} [value] The horizontal alignment.
|
@@ -22760,6 +22771,17 @@ declare module GC{
|
|
22760
22771
|
* ```
|
22761
22772
|
*/
|
22762
22773
|
addSpan(row: number, col: number, rowCount: number, colCount: number, sheetArea?: GC.Spread.Sheets.SheetArea): void;
|
22774
|
+
/**
|
22775
|
+
* Adds a lot of spans to this sheet in the specified sheet area.
|
22776
|
+
* @param {Array} spans The span ranges, each range contains row, col, rowCount, colCount.
|
22777
|
+
* @param {GC.Spread.Sheets.SheetArea} [sheetArea] The sheet area. If this parameter is not given, it defaults to `viewport`.
|
22778
|
+
* @example
|
22779
|
+
* ```
|
22780
|
+
* //This example creates cell spans.
|
22781
|
+
* sheet.addSpans([{row: 0, col: 0, rowCount: 2, colCount: 2}, {row: 3, col: 0, rowCount: 3, colCount: 3}, {row: 7, col: 0, rowCount: 4, colCount: 4}], GC.Spread.Sheets.SheetArea.viewport);
|
22782
|
+
* ```
|
22783
|
+
*/
|
22784
|
+
addSpans(spans: GC.Spread.Sheets.IRange[], sheetArea?: GC.Spread.Sheets.SheetArea): void;
|
22763
22785
|
/**
|
22764
22786
|
* Automatically fits the viewport column.
|
22765
22787
|
* @param {number} column The column index.
|