FillFormat.GradientStyle Property
PowerPoint Developer Reference |
Returns the gradient style for the specified fill. Read-only.
Syntax
expression.GradientStyle
expression A variable that represents a FillFormat object.
Return Value
MsoGradientStyle
Remarks
Use the OneColorGradient, PresetGradient, or TwoColorGradient method to set the gradient style for the fill. Attempting to return this property for a fill that doesn't have a gradient generates an error. Use the Type property to determine whether the fill has a gradient.
The value returned by the GradientStyle property can be one of these MsoGradientStyle constants.
msoGradientDiagonalDown |
msoGradientDiagonalUp |
msoGradientFromCenter |
msoGradientFromCorner |
msoGradientFromTitle |
msoGradientHorizontal |
msoGradientMixed |
msoGradientVertical |
Example
This example adds a rectangle to myDocument
and sets its fill gradient style to match that of the shape named "rect1." For the example to work, rect1 must have a gradient fill.
Visual Basic for Applications |
---|
|
See Also