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 | |
---|---|---|
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. | |
OneColorGradient | Sets the specified fill to a one-color gradient. | |
Patterned | Sets the specified fill to a pattern. | |
PresetGradient | Sets the specified fill to a preset gradient. | |
PresetTextured | Sets the specified fill to a preset texture. | |
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. | |
TwoColorGradient | Sets the specified fill to a two-color gradient. | |
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. | |
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 | |
---|---|---|
Application | Returns an Application object that represents the creator of the specified object. | |
BackColor | Returns or sets a ColorFormat object that represents the background color for the specified fill or patterned line. Read/write. | |
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. | |
ForeColor | Returns or sets a ColorFormat object that represents the foreground color for the fill, line, or shadow. Read/write. | |
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. | |
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. | |
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. | |
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. | |
Parent | Returns the parent object for the specified object. | |
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. | |
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. | |
PresetTexture | Returns the preset texture for the specified fill. Read-only MsoPresetTexture. | |
TextureName | Read-only | |
TextureType | Read-only | |
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. | |
Type | Returns an MsoFillType constant that represent the type of fill. Read-only. | |
Visible | Returns or sets the visibility of the specified object or the formatting applied to the specified object. Read/write MsoTriState . |