Edit

Share via


FillFormat Interface

Definition

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

public interface class FillFormat
[System.Runtime.InteropServices.Guid("000209C8-0000-0000-C000-000000000046")]
public interface FillFormat
type FillFormat = interface
Public Interface FillFormat
Attributes

Remarks

Use the Fill property of a Shape, ShapeRange, or InlineShape object to return a FillFormat object.

Many of the properties of the FillFormat object are read-only. To set one of these properties, you have to apply the corresponding method.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

BackColor

Returns or sets a ColorFormat object that represents the background color for the specified fill or patterned line.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

ForeColor

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

GradientAngle

Gets 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

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

Parent

Returns an object that represents the parent object of the specified object.

Pattern

Returns a value that represents the pattern applied to the specified fill.

PictureEffects

Gets 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

Gets or sets whether the fill rotates with the specified shape.

TextureAlignment

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

TextureHorizontalScale

Gets or sets a value that specifies the horizontal scaling factor for the texture fill.

TextureName

Returns the name of the custom texture file for the specified fill.

TextureOffsetX

Gets or sets a value that specifies the horizontal offset of the texture from the origin in points.

TextureOffsetY

Gets or sets a value that specifies the vertical offset of the texture from the origin in points.

TextureTile

Gets or sets whether the texture fill is tiled or centered.

TextureType

Returns the texture type for the specified fill.

TextureVerticalScale

Gets or sets a value that specifies the vertical scaling factor for the texture fill.

Transparency

Returns or sets the degree of transparency of the specified fill 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.

Methods

Background()

Reserved for internal use.

OneColorGradient(MsoGradientStyle, Int32, Single)

Sets the specified fill to a one-color gradient.

Patterned(MsoPatternType)

Sets the specified fill to a pattern.

PresetGradient(MsoGradientStyle, Int32, MsoPresetGradientType)

Sets the specified fill to a preset gradient.

PresetTextured(MsoPresetTexture)

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(MsoGradientStyle, Int32)

Sets the specified fill to a two-color gradient.

UserPicture(String)

Fills the specified shape with one large image.

UserTextured(String)

Fills the specified shape with small tiles of an image.

Applies to