返回一个 LineFormat 对象,该对象含有指定形状的线条格式属性。(对于线条,LineFormat 对象代表该线条本身;对于一个有边界的形状,LineFormat 对象代表边界)。只读。
本示例向 myDocument
中添加蓝色的虚线。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(50, 0, 128)
End With
本示例向第一张幻灯片中添加一个十字,然后将其边框设置为 8 磅,颜色为红色。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddShape(msoShapeCross, 10, 10, 50, 70).Line
.Weight = 8
.ForeColor.RGB = RGB(255, 0, 0)
End With