返回指定填充的过渡颜色类型。MsoGradientColorType 类型,只读。
MsoGradientColorType 可为以下 MsoGradientColorType 常量之一。 |
msoGradientColorMixed |
msoGradientOneColor |
msoGradientPresetColors |
msoGradientTwoColors |
expression GradientColorType
expression 必需。该表达式返回“应用于”列表中的对象之一。
如果图表中图表区的填充格式为单一颜色过渡方式,本示例将设置其填充样式。
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