Interior.Pattern Property
Returns or sets a Variant value, containing an [XlPattern#SameCHM] constant, that represents the interior pattern.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property Pattern As Object
Get
Set
'Usage
Dim instance As Interior
Dim value As Object
value = instance.Pattern
instance.Pattern = value
Object Pattern { 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 red, 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.PatternColorIndex = 3
End With
End If
End With