Defines a set of styles that can be applied to the borders of cells. The supported border styles range from very basic to more complex patterns, resulting in an extensive set of visual presentation options.
public enum BorderStyle
Value | Member | Description |
---|---|---|
0 | None |
No border. |
1 | Thin |
A thin, single line border. |
2 | Medium |
Thicker than Thin, a medium line border. |
3 | Dashed |
A border consisting of dashes. |
4 | Dotted |
A border comprising of dots. |
5 | Thick |
A thick line border. |
6 | DoubleLines |
Two parallel lines. |
7 | Hair |
A very fine, hairline border. |
8 | MediumDashed |
A dashed line that's thicker than the Dashed style. |
9 | DashDot |
Alternating dashes and dots. |
10 | MediumDashDot |
A DashDot pattern with a medium thickness. |
11 | DashDotDot |
A pattern of a dash followed by two dots. |
12 | MediumDashDotDot |
A DashDotDot pattern with a medium thickness. |
13 | SlantedDashDot |
Dashes and dots placed in a slanted manner. |
The BorderStyle enumeration allows for detailed customization of cell borders.
The styles range from simple (Thin
, Medium
, Thick
) to more complex patterns (DashDot
, MediumDashDot
, etc.), providing flexibility for different aesthetic and functional requirements.
For instance, the None
style is useful for removing borders or ensuring that no border is applied.