Share via


Interior.PatternColor Property

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

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

Syntax

'Declaration
Property PatternColor As Object
    Get
    Set
'Usage
Dim instance As Interior
Dim value As Object

value = instance.PatternColor

instance.PatternColor = value
Object PatternColor { get; set; }

Property Value

Type: System.Object

Examples

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 ActivePresentation.Slides(1).Shapes(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

Reference

Interior Interface

Interior Members

Microsoft.Office.Interop.PowerPoint Namespace