Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.09 KB

PowerPoint.Shape.Fill.md

File metadata and controls

53 lines (32 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.Fill property (PowerPoint)
vbapp10.chm547022
vbapp10.chm547022
PowerPoint.Shape.Fill
bfb2dfe6-5036-0731-3a0f-1294ba87e103
06/08/2017
medium

Shape.Fill property (PowerPoint)

Returns a FillFormat object that contains fill formatting properties for the specified shape. Read-only.

Syntax

expression.Fill

expression A variable that represents a Shape object.

Return value

FillFormat

Example

This example adds a rectangle to myDocument and then sets the foreground color, background color, and gradient for the rectangle's fill.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes _
        .AddShape(msoShapeRectangle, 90, 90, 90, 50).Fill
    .ForeColor.RGB = RGB(128, 0, 0)
    .BackColor.RGB = RGB(170, 170, 170)
    .TwoColorGradient msoGradientHorizontal, 1
End With

See also

Shape Object

[!includeSupport and feedback]