get_formula1方法

get_formula1(is_r1c1, is_local)

获取与此格式条件关联的值或表达式。

返回

与此格式条件关联的值或表达式。

def get_formula1(self, is_r1c1, is_local):
    ...
范围 类型 描述
is_r1c1 bool 公式是否需要格式化为R1C1。
is_local bool 公式是否需要按语言环境格式化。

get_formula1(row, column)

获取单元格条件格式的公式。

返回

公式。

def get_formula1(self, row, column):
    ...
范围 类型 描述
row int 行索引。
column int 列索引。

get_formula1(is_r1c1, is_local, row, column)

获取单元格条件格式的值或表达式。

返回

与单元格的条件格式关联的值或表达式。

def get_formula1(self, is_r1c1, is_local, row, column):
    ...
范围 类型 描述
is_r1c1 bool 公式是否需要格式化为R1C1。
is_local bool 公式是否需要按语言环境格式化。
row int 行索引。
column int 列索引。

评论

此条件格式必须包含给定的单元格,否则将返回 null。

也可以看看