Edytuj

Udostępnij za pośrednictwem


FillFormat Interface

Definition

Represents fill formatting for a shape.

public interface class FillFormat : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0314-0000-0000-C000-000000000046")]
public interface FillFormat : Microsoft.Office.Core._IMsoDispObj
Public Interface FillFormat
Implements _IMsoDispObj
Attributes
Implements

Remarks

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

Use the Fill property 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 an Application object that represents the Microsoft Excel application.

BackColor

Returns a ColorFormat object that represents the specified fill background color.

Creator

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

ForeColor

Returns a ColorFormat object that represents the specified foreground fill or solid color.

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 the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light).

GradientStops

Returns the end point for the gradient fill. Read-only.

GradientStyle

Returns the gradient style for the specified fill.

GradientVariant

Returns the shade variant for the specified fill as an integer value from 1 through 4.

Parent

Returns the parent object for the specified object.

Pattern

Returns or sets the fill pattern.

PictureEffects

Gets an object that represents the picture or texture fill for the specified fill format.

PresetGradientType

Returns the preset gradient type for the specified fill.

PresetTexture

Returns the preset texture for the specified fill.

RotateWithObject

Returns or sets if the fill style should rotate with the object. Read/write MsoTriState.

TextureAlignment

Returns or sets the text alignment for the specified FillFormatobject. Read/write.

TextureHorizontalScale

Returns or sets the value for horizontally scaling the text for the FillFormat object. Read/write Single.

TextureName

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

TextureOffsetX

Returns the offset X value for the specified fill. Read/write Single.

TextureOffsetY

Returns the offset Y value for the specified fill. Read/write Single.

TextureTile

Returns the texture tile style for the specified fill. Read/write MsoTriState.

TextureType

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

TextureVerticalScale

Returns the texture vertical scale for the specified fill. Read/write Single.

Transparency

Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).

Type

Returns the fill type.

Visible

Determines whether the object 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 format to a preset texture.

Solid()

Sets the specified fill to a uniform color.

TwoColorGradient(MsoGradientStyle, Int32)

Sets the specified fill to a two-color gradient.

UserPicture(String)

Fills the specified shape with an image.

UserTextured(String)

Fills the specified shape with small tiles of an image.

Applies to