Share via


ChartFillFormat.PresetGradientType Property

Returns the preset gradient type 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 PresetGradientType As MsoPresetGradientType
    Get
'Usage
Dim instance As ChartFillFormat
Dim value As MsoPresetGradientType

value = instance.PresetGradientType
MsoPresetGradientType PresetGradientType { get; }

Property Value

Type: Microsoft.Office.Core.MsoPresetGradientType
MsoPresetGradientType

Remarks

Use the PresetGradient(MsoGradientStyle, Int32, MsoPresetGradientType) method to set the preset gradient type for the fill.

The value of the PresetGradientType property can be one of these MsoPresetGradientType constants.

msoGradientBrass

msoGradientCalmWater

msoGradientChrome

msoGradientChromeII

msoGradientDaybreak

msoGradientDesert

msoGradientEarlySunset

msoGradientFire

msoGradientFog

msoGradientGold

msoGradientGoldII

msoGradientHorizon

msoGradientLateSunset

msoGradientMahogany

msoGradientMoss

msoGradientNightfall

msoGradientOcean

msoGradientParchment

msoGradientPeacock

msoGradientRainbow

msoGradientRainbowII

msoGradientSapphire

msoGradientSilver

msoGradientWheat

msoPresetGradientMixed

Examples

This example changes the fill for all shapes in myDocument with the Moss preset gradient fill to the Fog preset gradient fill.

Set myDocument = ActivePresentation.Slides(1)

For Each s In myDocument.Shapes

    With s.Fill

        If .PresetGradientType= msoGradientMoss Then

            .PresetGradient = msoGradientFog

        End If

    End With

Next

See Also

Reference

ChartFillFormat Interface

ChartFillFormat Members

Microsoft.Office.Interop.PowerPoint Namespace