主题
Height (属性)
返回一个 float 值,该值代表区域的高度(以磅为单位)。此为只读属性。
示例
python
#本示例使用 RowHeight 设置 A1 单元格的行高为 15,并显示 A1 单元格的行高
def test():
Range("A1").RowHeight = 15
print(Range("A1").Height)
python
#本示例显示 A1 单元格 Height 的数据类型
def test():
print(type(Range("A1").Height))