Share via


Weight 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 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