Expand Minimize

GradientColorType Property

Returns the gradient color type for the specified fill. Read-only MsoGradientColorType .

MsoGradientColorType can be one of these MsoGradientColorType constants.

msoGradientColorMixed

msoGradientOneColor

msoGradientPresetColors

msoGradientTwoColors

expression.GradientColorType

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

This example sets the fill format for the chart if its chart area has a one-color gradient fill.

With myChart.ChartArea.Fill 
 If .Type = msoFillGradient Then 
 If .GradientColorType = msoGradientOneColor Then 
 .OneColorGradient Style:= msoGradientFromCorner, _ 
 Variant:= 1, Degree:= 0.3 
 End If 
 End If 
End With

Community Additions

ADD
Show:
© 2014 Microsoft