ColorFormat.SchemeColor Property

Publisher Developer Reference

Specifies the color of the current color scheme. Read/write.

Syntax

expression.SchemeColor

expression   A variable that represents a ColorFormat object.

Return Value
PbSchemeColorIndex

Remarks

The SchemeColor property value can be one of the PbSchemeColorIndex constants declared in the Microsoft Office Publisher type library.

Example

The following example sets the color of the text in shape one on page one of the active publication to accent color five in the current color scheme.

Visual Basic for Applications
  ActiveDocument.Pages(1).Shapes(1).TextFrame _
    .TextRange.Font.Color.SchemeColor =
Visual Basic for Applications
  pbSchemeColorAccent5

See Also