Table of contents
TOC
Collapse the table of content
Expand the table of content

LineFormat.Style Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Concepts

LineFormat Object

© 2018 Microsoft