Share via


OLEFormat.FollowColors Property

Returns or sets the extent to which the colors in the specified object follow the slide's color scheme. Read/write.

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

Syntax

'Declaration
Property FollowColors As PpFollowColors
    Get
    Set
'Usage
Dim instance As OLEFormat
Dim value As PpFollowColors

value = instance.FollowColors

instance.FollowColors = value
PpFollowColors FollowColors { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpFollowColors
PpFollowColors

Remarks

The specified object must be a chart created in either Microsoft Graph or Microsoft Organization Chart.

The value of the FollowColors property can be one of these PpFollowColors constants.

Constant

Description

ppFollowColorsNone

The chart colors don't follow the slide's color scheme.

ppFollowColorsMixed

Some of the chart colors follow the slide's color scheme.

ppFollowColorsScheme

All the colors in the chart follow the slide's color scheme.

ppFollowColorsTextAndBackground

Only the text and background follow the slide's color scheme.

Examples

This example specifies that the text and background of shape two on slide one in the active presentation follow the slide's color scheme. Shape two must be a chart created in either Microsoft Graph or Microsoft Organization Chart.

ActivePresentation.Slides(1).Shapes(2).OLEFormat.FollowColors= ppFollowColorsTextAndBackground

See Also

Reference

OLEFormat Interface

OLEFormat Members

Microsoft.Office.Interop.PowerPoint Namespace