GradientDegree Property
Applies To
ChartFillFormat object.
Description
Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light). Read-only Single.
This property is read-only. Use the OneColorGradient method to set the gradient degree for the fill.
Example
This example sets the chart's fill format so that its gradient degree is at least 0.3.
With myChart.ChartArea.Fill
If .Type = msoFillGradient Then
If .GradientColorType = msoGradientOneColor Then
If .GradientDegree < 0.3 Then
.OneColorGradient .GradientStyle, .GradientVariant, 0.3
End If
End If
End If
End With