Partager via


FillFormat Members (PowerPoint)

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.

UserTextured

Fills the specified shape with small tiles of an image.

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 Microsoft 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.

GradientAngle

Returns or sets the angle of the gradient fill for the specified fill format. Read/write.

GradientColorType

Returns the gradient color type for the specified fill. Read-only.

GradientDegree

Returns a value that indicates how dark or light a one-color gradient fill is. Read-only.

GradientStops

Returns the GradientStops collection associated with the specified fill format. Read-only.

GradientStyle

Returns the gradient style for the specified fill. Read-only.

GradientVariant

Returns the gradient variant for the specified fill as an integer value from 1 to 4 for most gradient fills. Read-only.

Parent

Returns the parent object for the specified object.

Pattern

Sets or returns a value that represents the pattern applied to the specified fill. Read-only.

PictureEffects

Returns an object that represents the picture or texture fill for the specified fill format. Read-only.

PresetGradientType

Returns the preset gradient type for the specified fill. Read-only.

PresetTexture

Returns the preset texture for the specified fill. Read-only.

RotateWithObject

Returns or sets whether the fill rotates with the specified shape. Read/write.

TextureAlignment

Returns or sets the alignment (the origin of the coordinate grid) for the tiling of the texture fill. Read/write.

TextureHorizontalScale

Returns or sets the horizontal scaling factor for the texture fill. Read/write.

TextureName

Returns the name of the custom texture file for the specified fill. Read-only.

TextureOffsetX

Returns or sets the horizontal offset of the texture from the origin in points. Read/write.

TextureOffsetY

Returns or sets the vertical offset of the texture from the origin in points. Read/write.

TextureTile

Returns or sets whether the texture fill is tiled or centered. Read/write.

TextureType

Returns the texture type for the specified fill. Read-only.

TextureVerticalScale

Returns or sets the vertical scaling factor for the texture fill. Read/write.

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.

Type

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.