FillFormat.GradientDegree Property
Publisher Developer Reference |
Returns a Single indicating how dark or light a one-color gradient fill is. A value of 0 (zero) means that black is mixed in with the shape's foreground color to form the gradient; a value of 1 means that white is mixed in; and values between 0 and 1 mean that a darker or lighter shade of the foreground color is mixed in. Read-only.
Syntax
expression.GradientDegree
expression A variable that represents a FillFormat object.
Return Value
Single
Remarks
Use the OneColorGradient method to set the gradient degree for the fill.
Example
This example adds a rectangle to the active publication and sets the degree of its fill gradient to match that of the shape named Rectangle 2. If Rectangle 2 doesn't have a one-color gradient fill, this example generates an error.
Visual Basic for Applications |
---|
|
See Also