title | keywords | f1_keywords | ms.prod | api_name | ms.assetid | ms.date | ||
---|---|---|---|---|---|---|---|---|
LineFormat.Weight Property (PowerPoint) |
vbapp10.chm553015 |
|
powerpoint |
|
5141d66f-4706-060d-fb4c-f244f9ac6437 |
06/08/2017 |
Returns or sets the thickness of the specified line, in points. Read/write.
expression. Weight
expression A variable that represents a LineFormat object.
Single
This example adds a green dashed line two points thick to 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