Partager via


SeriesLines Object (PowerPoint)

Represents series lines in a chart group.

Version Information

Version Added: PowerPoint 2007

Remarks

Series lines connect the data values from each series. Only 2-D stacked bar, 2-D stacked column, pie-of-pie, or bar-of-pie charts can have series lines. This object is not a collection. There is no object that represents a single series line; you either enable series lines for all points in a chart group or you disable them.

If the HasSeriesLines property is False, most properties of the SeriesLines object are disabled.

Example

Note

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

Use the SeriesLines property to return a SeriesLines object. The following example adds series lines to chart group one in embedded chart one on worksheet one (the chart must be a 2-D stacked bar or column chart).

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.ChartGroups(1)

            .HasSeriesLines = True

            .SeriesLines.Border.Color = RGB(0, 0, 255)

        End With

    End If

End With

See Also

Concepts

SeriesLines Object Members

PowerPoint Object Model Reference