单元格接口
#
getCoordinate根据行 id
和列的 field
获取单元格坐标。
public getCoordinate(row: string, col: string): Coordinate;
#
getCellPosition根据单元格坐标获取单元格的行 id
和列 field
。
public getCellPosition(coord: Coordinate): CellPosition;
#
getRawCellValue根据单元格位置获取单元格的原始数据。
public getRawCellValue(row: string, column: string): any;
#
getRawCellValueByCoord根据单元格坐标获取单元格的原始数据。
public getRawCellValueByCoord(coord: Coordinate): any;
#
getCellValue获取应用了 transformer
的单元格数据。
public getCellValue(row: string, column: string): any;
#
getCellValueByCoord参数为坐标版本的 getCellValue
public getCellValueByCoord(coord: Coordinate): any;
#
setCellValue根据单元格位置设置单元格的值。
public setCellValue(row: string, column: string, value: any, force = false): void;
#
setCellValueByCoord根据单元格坐标设置单元格的值。
public setCellValueByCoord(coord: Coordinate, value: any): void;
#
stopEditing停止正在编辑的单元格。
public stopEditing(): void;
#
setEditing对指定位置的单元格启用编辑。
public setEditing(pos?: CellPosition): void;
#
getCoordLocatedRange获取单元格所在的选区。
public getCoordLocatedRange(coord: Coordinate): CellRange | undefined;