主题
UseStandardHeight (属性)
如果 Range 对象的行高等于工作表的标准行高,则该值为 True。如果区域包含不止一行并且不是所有的行都等高,则返回 None。Any 类型,可读写。
示例
python
#本示例将 Sheet1 中的首行的行高设置为标准行高
def test():
Worksheets.Item("Sheet1").Rows.Item(1).UseStandardHeight = True
python
#本示例将 A1 单元格所在行的行高设置为 50,并显示 A1 单元格和 A1:A5 单元格区域的行高是否等于标准行高
def test():
Range("A1").Rows.RowHeight = 50
print(Range("A1").UseStandardHeight) # False
print(Range("A1:A5").UseStandardHeight) # None