GradientColorType 属性

       

返回指定填充的过渡颜色类型。MsoGradientColorType 类型,只读。

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