Share via


FillFormat.OneColorGradient(MsoGradientStyle, Int32, Single) 方法

定义

将指定填充设置为单色渐变。

public:
 void OneColorGradient(Microsoft::Office::Core::MsoGradientStyle Style, int Variant, float Degree);
public void OneColorGradient (Microsoft.Office.Core.MsoGradientStyle Style, int Variant, float Degree);
abstract member OneColorGradient : Microsoft.Office.Core.MsoGradientStyle * int * single -> unit
Public Sub OneColorGradient (Style As MsoGradientStyle, Variant As Integer, Degree As Single)

参数

Style
MsoGradientStyle

必需 MsoGradientStyle。 渐变样式。

Variant
Int32

必需 整数。 渐变变量。 可以是从 1 到 4,对应于 填充效果对话框中 渐变选项卡上的四个变量的值。 如果 StylemsoGradientFromCenter,则此参数可以为 1 或 2。

Degree
Single

必需 单一。 渐变深度。 值的范围从 0.0(深)到 1.0(浅)。

适用于