Muokkaa

Jaa


LineFormat.Style property (PowerPoint)

Returns or sets the line style. Read/write.

Syntax

expression.Style

expression A variable that represents a LineFormat object.

Return value

MsoLineStyle

Remarks

The value of the Style property can be one of these MsoLineStyle constants.

msoLineSingle
msoLineStyleMixed
msoLineThickBetweenThin
msoLineThickThin
msoLineThinThick
msoLineThinThin

Example

This example adds a thick, blue, compound line to myDocument. The compound line consists of a thick line with a thin line on either side of it.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddLine(10, 10, 250, 250).Line

    .Style = msoLineThickBetweenThin

    .Weight = 8

    .ForeColor.RGB = RGB(0, 0, 255)

End With

See also

LineFormat Object

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.