[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.FillType

FillType Enum

Specifies a shape's fill type.

Use this enumeration to identify how a shape or line is filled, such as with a solid color, pattern, gradient, texture, picture, or the fill inherited from a group. This value is typically returned by APIs such as Type.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public enum FillType
Public Enum FillType
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.Patterned(PatternType.Percent10);
if (fillFormat.Type == FillType.Patterned)
{
    fillFormat.PatternColor.RGB = Color.Blue;
}

Fields

Name Description
Gradient

Specifies that the object uses a gradient fill.

Group

Specifies that the shape uses the fill defined by its parent group.

Patterned

Specifies a patterned fill, where the object is filled using a pattern instead of a solid color, gradient, texture, or picture.

Picture

Specifies that the shape uses a picture fill.

Solid

Specifies a solid fill, where the object is filled with a single color rather than a pattern, gradient, texture, or picture.

Textured

Specifies a textured fill.

Use this value when the object is filled with a texture, including preset or user-defined textures.