[]
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.
void Patterned(PatternType pattern)
Sub Patterned(pattern As PatternType)
| Type | Name | Description |
|---|---|---|
| PatternType | pattern | The PatternType object. |
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;