LineFormat.Weight 属性 (PowerPoint)
以磅为单位返回或设置指定线条的粗细。 读/写。
语法
表达式。重量
表达 一个代表 LineFormat 对象的变量。
返回值
单精度
示例
本示例将一条两磅粗的绿色虚线添加到 myDocument。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(0, 255, 255)
.Weight = 2
End With
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。