[]
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.
public enum FillType
Public Enum FillType
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;
}
| 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. |