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 and shown in the following table.

msoLineSingle
msoLineThickBetweenThin
msoLineThickThin
msoLineThinThick
msoLineThinThin

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