Share via


Line Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns a ChLine object that you can use to change the appearance of the specified chart element.

expression.Line

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

When used with other properties, the Line property can format axes, trendlines, lines on line or stock charts, error bars, and gridlines.

Example

This example sets the line color for the specified series.

  ChartSpace1.Charts(0).SeriesCollection(0).Line.Color = "red"