Skip to content
本页内容

Weight (属性)

返回或设置一个 Single 值,它代表线条的粗细。

示例

python
#本示例显示活动工作表的第一个形状线条的粗细
def test():
    line = ActiveSheet.Shapes.Item(1).Line
    print(line.Weight)
python
#本示例设置第一张工作表中第二个形状线条的粗细为3磅
def test():
    line = Worksheets.Item(1).Shapes.Item(2).Line
    line.Weight = 3