freeze_panes方法
freeze_panes(self, cell_name, freezed_rows, freezed_columns)
在工作表中的指定单元格处冻结窗格。
def freeze_panes(self, cell_name, freezed_rows, freezed_columns):
...
范围 | 类型 | 描述 |
---|---|---|
cell_name | str | Cell 名称。 |
freezed_rows | int | 顶部窗格中可见的行数,不超过行索引。 |
freezed_columns | int | 左窗格中可见列的数量,不超过列索引。 |
注意事项
行索引和列索引不能全部为零。行数和列数 也不可能全部为零。
freeze_panes(self, row, column, freezed_rows, freezed_columns)
在工作表中的指定单元格处冻结窗格。
def freeze_panes(self, row, column, freezed_rows, freezed_columns):
...
范围 | 类型 | 描述 |
---|---|---|
row | int | 行索引。 |
column | int | 列索引。 |
freezed_rows | int | 顶部窗格中可见的行数,不超过行索引。 |
freezed_columns | int | 左窗格中可见列的数量,不超过列索引。 |
注意事项
行索引和列索引不能全部为零。行数和列数 也不可能全部为零。
前两个参数指定冻结位置,后两个参数指定左上窗格冻结的区域。