Share via


FillFormat Object Members

PowerPoint Developer Reference

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

Methods

  Name Description
Bb251431.methods(en-us,office.12).gif Background Specifies that the shape's fill should match the slide background. If you change the slide background after applying this method to a fill, the fill will also change.
Bb251431.methods(en-us,office.12).gif OneColorGradient Sets the specified fill to a one-color gradient.
Bb251431.methods(en-us,office.12).gif Patterned Sets the specified fill to a pattern.
Bb251431.methods(en-us,office.12).gif PresetGradient Sets the specified fill to a preset gradient.
Bb251431.methods(en-us,office.12).gif PresetTextured Sets the specified fill to a preset texture.
Bb251431.methods(en-us,office.12).gif Solid Sets the specified fill to a uniform color. Use this method to convert a gradient, textured, patterned, or background fill back to a solid fill.
Bb251431.methods(en-us,office.12).gif TwoColorGradient Sets the specified fill to a two-color gradient.
Bb251431.methods(en-us,office.12).gif UserPicture Fills the specified shape with one large image. If you want to fill the shape with small tiles of an image, use the UserTextured method.
Bb251431.methods(en-us,office.12).gif UserTextured Fills the specified shape with small tiles of an image. If you want to fill the shape with one large image, use the UserPicture method.

Properties

  Name Description
Bb251431.properties(en-us,office.12).gif Application Returns an Application object that represents the creator of the specified object.
Bb251431.properties(en-us,office.12).gif BackColor Returns or sets a ColorFormat object that represents the background color for the specified fill or patterned line. Read/write.
Bb251431.properties(en-us,office.12).gif Creator Returns a Long that represents the four-character creator code for the application in which the specified object was created. For example, if the object was created in PowerPoint, this property returns the hexadecimal number 50575054. Read-only.
Bb251431.properties(en-us,office.12).gif ForeColor Returns or sets a ColorFormat object that represents the foreground color for the fill, line, or shadow. Read/write.
Bb251431.properties(en-us,office.12).gif GradientColorType Returns the gradient color type for the specified fill. This property is read-only. Use the OneColorGradient, PresetGradient, or TwoColorGradient method to set the gradient type for the fill. Read-only MsoGradientColorType.
Bb251431.properties(en-us,office.12).gif GradientDegree Returns a value that indicates how dark or light a one-color gradient fill is. A value of 0 (zero) means that black is mixed in with the shape's foreground color to form the gradient; a value of 1 means that white is mixed in; and values between 0 and 1 mean that a darker or lighter shade of the foreground color is mixed in. Read-only Single. This property is read-only. Use the OneColorGradient method to set the gradient degree for the fill.
Bb251431.properties(en-us,office.12).gif GradientStyle Returns the gradient style for the specified fill. Use the OneColorGradient, PresetGradient, or TwoColorGradient method to set the gradient style for the fill. Attempting to return this property for a fill that doesn't have a gradient generates an error. Use the Type property to determine whether the fill has a gradient. Read-only MsoGradientStyle.
Bb251431.properties(en-us,office.12).gif GradientVariant Returns the gradient variant for the specified fill as an integer value from 1 to 4 for most gradient fills. If the gradient style is msoGradientFromTitle or msoGradientFromCenter, this property returns either 1 or 2. The values for this property correspond to the gradient variants (numbered from left to right and from top to bottom) on the Gradient subtab in the Shape Fill tab. Read-only Long. This property is read-only. Use the OneColorGradient, PresetGradient, or TwoColorGradient method to set the gradient variant for the fill.
Bb251431.properties(en-us,office.12).gif Parent Returns the parent object for the specified object.
Bb251431.properties(en-us,office.12).gif Pattern Sets or returns a value that represents the pattern applied to the specified fill. Use the BackColor and ForeColor properties to set the colors used in the pattern. Read-only MsoPatternType.
Bb251431.properties(en-us,office.12).gif PresetGradientType Returns the preset gradient type for the specified fill. Read-only MsoPresetGradientType. Use the PresetGradient method to set the preset gradient type for the fill.
Bb251431.properties(en-us,office.12).gif PresetTexture Returns the preset texture for the specified fill. Read-only MsoPresetTexture.
Bb251431.properties(en-us,office.12).gif TextureName Read-only
Bb251431.properties(en-us,office.12).gif TextureType Read-only
Bb251431.properties(en-us,office.12).gif Transparency Returns or sets the degree of transparency of the specified fill, shadow, or line as a value between 0.0 (opaque) and 1.0 (clear). Read/write Single.
Bb251431.properties(en-us,office.12).gif Type Returns an MsoFillType constant that represent the type of fill. Read-only.
Bb251431.properties(en-us,office.12).gif Visible Returns or sets the visibility of the specified object or the formatting applied to the specified object. Read/write MsoTriState .