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

ChartBorder.LineStyle Property (PowerPoint)

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

Returns or sets the line style for the border. Read/write XlLineStyle, xlGray25, xlGray50, xlGray75, or xlAutomatic.

Syntax

expression. LineStyle

expression A variable that represents a ChartBorder object.

Remarks

The xlDouble and xlSlantDashDot constants of the XlLineStyle enumeration do not apply to charts.

Example

Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example puts a border around the chart area and the plot area of the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart

            .ChartArea.Border.LineStyle = xlDashDot

            With .PlotArea.Border

                .LineStyle = xlDashDotDot

                .Weight = xlThick

            End With

        End With

    End If

End With

See also

Concepts

ChartBorder Object

© 2018 Microsoft