该属性返回或设置指定线条的粗细,以磅为单位。Single 类型,可读写。
expression.Weight
expression 必需。该表达式返回一个 LineFormat 对象。
本示例将一条两磅粗的绿色点划线添至活动文档。
With ActiveDocument.Shapes.AddLine(10, 10, 250, 250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(0, 255, 255)
.Weight = 2
End With