Partager via


Interior.PatternColor Property (PowerPoint)

Returns or sets the color of the interior pattern as an RGB value. Read/write Variant.

Version Information

Version Added: PowerPoint 2007

Syntax

expression .PatternColor

expression A variable that represents an Interior object.

Example

Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example enables up and down bars, then adds a criss-cross pattern to the down bars and sets the pattern color to blue, for the first chart group of the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.ChartGroups(1)

            .HasUpDownBars = True

            .DownBars.Interior.Pattern = xlPatternCrissCross

            .DownBars.Interior.PatternColor = RGB(0, 0, 255)

        End With

    End If

End With

See Also

Concepts

Interior Object Members

Interior Object