LineFormat.Style property (Publisher)
Returns or sets an MsoLineStyle constant that represents the style of line to apply to a shape or border. Read/write.
Syntax
expression.Style
expression A variable that represents a LineFormat object.
Return value
MsoLineStyle
Remarks
The Style property value can be one of the MsoLineStyle constants declared in the Microsoft Office type library.
Example
This example adds a new shape and sets the line properties for the shape.
Sub SetLineStyle()
With ActiveDocument.Pages(1).Shapes.AddShape(msoShapeRectangle, _
Left:=72, Top:=140, Width:=200, Height:=100)
.Rotation = 120
With .Line
.Weight = 5
.DashStyle = msoLineDashDotDot
.Style = msoLineThickBetweenThin
End With
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.