Table of contents
TOC
Collapse the table of content
Expand the table of content

FillFormat Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents fill formatting for a shape. A shape can have a solid, gradient, texture, pattern, picture, or semi-transparent fill.

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.

Example

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

Methods

Name
Background
OneColorGradient
Patterned
PresetGradient
PresetTextured
Solid
TwoColorGradient
UserPicture
UserTextured

Properties

Name
Application
BackColor
Creator
ForeColor
GradientAngle
GradientColorType
GradientDegree
GradientStops
GradientStyle
GradientVariant
Parent
Pattern
PictureEffects
PresetGradientType
PresetTexture
RotateWithObject
TextureAlignment
TextureHorizontalScale
TextureName
TextureOffsetX
TextureOffsetY
TextureTile
TextureType
TextureVerticalScale
Transparency
Type
Visible

See also

Other resources

PowerPoint Object Model Reference

© 2018 Microsoft