Share via


FillFormat.GradientStyle Property

Returns the gradient style for the specified fill. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property GradientStyle As MsoGradientStyle
    Get
'Usage
Dim instance As FillFormat
Dim value As MsoGradientStyle

value = instance.GradientStyle
MsoGradientStyle GradientStyle { get; }

Property Value

Type: Microsoft.Office.Core.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

msoGradientFromCenter

msoGradientFromTitle

msoGradientHorizontal

msoGradientMixed

msoGradientVertical

See Also

Reference

FillFormat Interface

FillFormat Members

Microsoft.Office.Interop.PowerPoint Namespace