Weight Property

Microsoft Office Web Components Visual Basic

expression.Weight

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

Example

This example sets the axis line and border weight of the chart to thick.

Sub FormatChart()

   Dim chConstants

   Set chConstants = ChartSpace1.Constants

   ChartSpace1.Charts(0).Axes(chConstants.chAxisPositionValue).Line _
                       .Weight = chConstants.owcLineWeightThick

   ChartSpace1.Border.Weight = chConstants.owcLineWeightThick

End Sub