Weight Property

Returns or sets the weight for the specified border or line. Can be one of the LineWeightEnum constants, or can be Null if the borders are not all the same weight. Read/write Variant.

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

Applies to | Border Object | Borders Collection Object | ChBorder Object | ChLine Object