[]
Specifies the pattern used for a shape fill or patterned line.
Use this enum with Patterned(PatternType) or Patterned(PatternType) to apply percentage-based fills, directional lines, grids, diamonds, bricks, and other built-in drawing patterns. Many values combine the foreground and background colors of the target fill or line format.
public enum PatternType
Public Enum PatternType
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
shape.Fill.Patterned(PatternType.LightDownwardDiagonal);
shape.Fill.Color.RGB = Color.Red;
shape.Fill.PatternColor.RGB = Color.Blue;
| Name | Description |
|---|---|
| Cross | Specifies to use a cross pattern formed by horizontal and vertical lines. |
| DarkDownwardDiagonal | Specifies to use thick lines in the foreground color running from the top to the right-hand side of the shape. |
| DarkHorizontal | Specifies to use thick horizontal lines in the foreground color. |
| DarkUpwardDiagonal | Specifies to use thick lines in the foreground color running from the top to the left-hand side of the shape. |
| DarkVertical | Specifies to use thick vertical lines in the foreground color. |
| DashedDownwardDiagonal | Specifies to use dashed lines in the foreground color running from the top to the right-hand side of the shape. |
| DashedHorizontal | Specifies to use dashed horizontal lines in the foreground color. |
| DashedUpwardDiagonal | Specifies to use dashed lines in the foreground color running from the top to the left-hand side of the shape. |
| DashedVertical | Specifies to use dashed vertical lines in the foreground color. |
| DiagonalBrick | Specifies to use a rectangular brick pattern running diagonally across the shape. |
| DiagonalCross | Specifies to use a diagonal cross pattern formed by intersecting diagonal lines. |
| Divot | Specifies to use small angled shapes in the foreground color running in alternating rows down the shape. |
| DottedDiamond | Specifies to use dotted perpendicular lines in the foreground color running diagonally to form diamonds across the shape. |
| DottedGrid | Specifies to use dotted perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. |
| DownwardDiagonal | Specifies to use a downward diagonal pattern. |
| Horizontal | Specifies to use a horizontal pattern. |
| HorizontalBrick | Specifies to use a rectangular brick pattern running horizontally across the shape. |
| LargeCheckerBoard | Specifies to use squares in alternating foreground or background colors. |
| LargeConfetti | Specifies a pattern of large dots in the foreground color scattered across the shape. |
| LargeGrid | Specifies to use solid, widely spaced perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. |
| LightDownwardDiagonal | Specifies to use thin lines in the foreground color running from the top to the right-hand side of the shape. |
| LightHorizontal | Specifies to use thin horizontal lines in the foreground color. |
| LightUpwardDiagonal | Specifies to use thin lines in the foreground color running from the top to the left-hand side of the shape. |
| LightVertical | Specifies to use thin vertical lines in the foreground color. |
| Mixed | Specifies a mixed fill or line pattern. |
| NarrowHorizontal | Specifies to use narrowly spaced horizontal lines in the foreground color. |
| NarrowVertical | Specifies to use narrowly spaced vertical lines in the foreground color. |
| None | Specifies no pattern. |
| OutlinedDiamond | Specifies to use solid perpendicular lines in the foreground color running diagonally to form diamonds across the shape. |
| Percent10 | Specifies to use 10% of the foreground color. |
| Percent20 | Specifies to use 20% of the foreground color. |
| Percent25 | Specifies to use 25% of the foreground color. |
| Percent30 | Specifies to use 30% of the foreground color. |
| Percent40 | Specifies to use 40% of the foreground color in a pattern fill. |
| Percent5 | Specifies to use 5% of the foreground color. |
| Percent50 | Specifies to use 50% of the foreground color. |
| Percent60 | Specifies to use 60% of the foreground color. |
| Percent70 | Specifies to use 70% of the foreground color. |
| Percent75 | Specifies to use 75% of the foreground color. |
| Percent80 | Specifies a pattern fill that uses 80% of the foreground color. |
| Percent90 | Specifies to use 90% of the foreground color. |
| Plaid | Specifies a plaid pattern that uses very thick solid vertical lines in the foreground color, combined with very thick horizontal lines rendered at 40% of the foreground color. |
| Shingle | Specifies to use overlapping curved rectangles running diagonally across the shape. |
| SmallCheckerBoard | Specifies to use small squares in alternating foreground and background colors. |
| SmallConfetti | Specifies to use small dots in the foreground color scattered across the shape. |
| SmallGrid | Specifies to use solid, closely spaced perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. |
| SolidDiamond | Specifies to use diamond shapes in alternating foreground or background colors. |
| Sphere | Specifies to use circles that use foreground and background colors to make them appear three-dimensional, oriented in rows across the shape. |
| Trellis | Specifies to use a trellis pattern in the foreground color. |
| UpwardDiagonal | Specifies to use an upward diagonal pattern. |
| Vertical | Specifies a pattern of vertical lines. |
| Wave | Specifies a wave pattern that uses wavy lines in the foreground color. |
| Weave | Specifies to use a weave pattern in the foreground color running diagonally across the shape. |
| WideDownwardDiagonal | Specifies to use widely spaced lines in the foreground color running from the top to the right-hand side of the shape. |
| WideUpwardDiagonal | Specifies to use widely spaced lines in the foreground color running from the top to the left-hand side of the shape. |
| ZigZag | Specifies to use zigzag lines running horizontally across the shape. |