Class FillFormat (Word VBA)

The class FillFormat represents fill formatting for a shape. A shape can have a solid, gradient, texture, pattern, picture, or semi-transparent fill.

The classes ChartFormat, Font, InlineShape and Shape. give access to class FillFormat


Dim fft as FillFormat
Set fft = Selection.Font.Fill

Methods

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.

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

BackColor returns or sets a ColorFormat object that represents the background color for the fill Read/write.

ForeColor returns or sets a ColorFormat object that represents the foreground color for the fill.

GradientAngle returns or sets the angle of the gradient fill for the specified fill format.

GradientColorType returns the gradient color type for the specified fill.

GradientDegree returns a value that indicates how dark or light a one-color gradient fill is.

GradientStops returns the GradientStops collection associated with the specified fill format.

GradientStyle returns the gradient style for the specified fill.

GradientVariant returns the gradient variant for the specified fill as an integer value from 1 to 4 for most gradient fills.

Pattern returns or sets a MsoPatternType constant that represents the pattern applied to the specified fill or line.

PictureEffects returns a PictureEffects object that can be used to apply picture effects to the specified fill formatting.

PresetGradientType returns the preset gradient type for the specified fill.

PresetTexture returns the preset texture for the specified fill.

RotateWithObject returns or sets whether the fill rotates with the specified shape.

TextureAlignment returns or sets the alignment (the origin of the coordinate grid) for the tiling of the texture fill.

TextureHorizontalScale returns or sets a Single that specifies the horizontal scaling factor for the texture fill.

TextureName returns the name of the custom texture file for the specified fill.

TextureOffsetX returns or sets a Long that specifies the horizontal offset of the texture from the origin in points.

TextureOffsetY returns or sets a Long that specifies the vertical offset of the texture from the origin in points.

TextureTile returns or sets whether the texture fill is tiled or centered.

TextureType returns the texture type for the specified fill.

TextureVerticalScale returns or sets a Single that specifies the vertical scaling factor for the texture fill.

Transparency returns or sets the degree of transparency of the specified fillfor a shape as a value between 0.0 (opaque) and 1.0 (clear).

Type returns the shape fill format type.

Visible true if the specified object, or the formatting applied to it, is visible.

ColorFormat - Represents the color of a one-color object or the foreground or background color of an object with a gradient or patterned fill. You can set colors to an explicit red-green-blue value by using the RGB property.