ColorSchemes.Item Property (Publisher)

Returns the specified ColorScheme object from a ColorSchemes collection. Read-only.

Syntax

expression .Item(Index)

expression A variable that represents a ColorSchemes object.

Parameters

Name

Required/Optional

Data Type

Description

Index

Required

Variant

The color scheme to return. Can be either the name of the color scheme as a string or the corresponding PbColorScheme constant.

Remarks

The Item property value can be one of the PbColorScheme constants declared in the Microsoft Publisher type library.

Example

This example sets the color scheme of the active publication to the Aqua color scheme.

ActiveDocument.ColorScheme = ColorSchemes.Item(Index:=pbColorSchemeAqua)