ChartFillFormat Interface
Represents fill formatting for a shape. A shape can have a solid, gradient, texture, pattern, picture, or semi-transparent fill.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
<GuidAttribute("92D41A5B-F07E-4CA4-AF6F-BEF486AA4E6F")> _
Public Interface ChartFillFormat
'Usage
Dim instance As ChartFillFormat
[GuidAttribute("92D41A5B-F07E-4CA4-AF6F-BEF486AA4E6F")]
public interface ChartFillFormat
Remarks
Many of the properties of the FillFormat object are read-only. To set one of these properties, you have to apply the corresponding method.
Examples
Use the Fill property to return a FillFormat object. The following example adds a rectangle to myDocument and then sets the gradient and color for the rectangle's fill.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes _
.AddShape(msoShapeRectangle, 90, 90, 90, 80).Fill
.ForeColor.RGB = RGB(0, 128, 128)
.OneColorGradient msoGradientHorizontal, 1, 1
End With