Partager via


ColorScheme.Colors Method (PowerPoint)

Returns an RGBColor object that represents a single color in a color scheme.

Syntax

expression .Colors(SchemeColor)

expression A variable that represents a ColorScheme object.

Parameters

Name

Required/Optional

Data Type

Description

SchemeColor

Required

PpColorSchemeIndex

The individual color in the specified color scheme.

Return Value

RGBColor

Example

This example sets the title color for slides one and three in the active presentation.

Set mySlides = ActivePresentation.Slides.Range(Array(1, 3))

mySlides.ColorScheme.Colors(ppTitle).RGB = RGB(0, 255, 0)

See Also

Concepts

ColorScheme Object Members

ColorScheme Object