[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.Patterned

Patterned Method

Patterned(PatternType)

Sets the specified fill to a pattern.

Use this method to apply a PatternType fill to a shape. After the pattern is set, you can customize the background color and pattern color through Color and PatternColor.

Declaration
void Patterned(PatternType pattern)
Sub Patterned(pattern As PatternType)
Parameters
Type Name Description
PatternType pattern

The PatternType object.

Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.Patterned(PatternType.LightDownwardDiagonal);
fillFormat.Color.RGB = Color.Red;
fillFormat.PatternColor.RGB = Color.Blue;