Border Property

Microsoft Office Web Components Object Model

Border Property

       

Returns a ChBorder object that represents the border of the specified object.

expression.Border

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

Remarks

The border for a chart series represents the outline color on column, bar, pie, doughnut, area, and high-low-close charts. On charts with markers (such as a line chart with markers), the border represents the outline color for the markers.

Example

This example sets the line weight of the border for the specified series in the chart workspace.


Sub SetBorder()

   Dim chConstants

   Set chConstants = ChartSpace1.Constants

   ChartSpace1.Charts(0).SeriesCollection(0).Border _
                        .Weight = chConstants.owcLineWeightMedium

End Sub