Class BorderType
The enumeration value indicating the line style of a border in a cell
Inheritance
Namespace: IronXL.Styles
Assembly: IronXL.dll
Syntax
public sealed class BorderType : Enum
Set BorderType to choose the line style drawn on a cell edge, assigned to the Type property of a border such as Style.TopBorder or Style.LeftBorder. None leaves an edge undrawn, while Thin, Medium, and Thick set the weight of a solid line. Double, Dashed, Dotted, Hair, and DashDot give the common variations, with heavier and slanted dash forms also available. The borders and alignment how-to walks through styling each edge.
worksheet["A1"].Style.TopBorder.Type = BorderType.Thin;Fields
DashDot
dash-dot border
Declaration
public const BorderType DashDot
Field Value
| Type | Description |
|---|---|
| BorderType |
DashDotDot
dash-dot-dot border
Declaration
public const BorderType DashDotDot
Field Value
| Type | Description |
|---|---|
| BorderType |
Dashed
dash border
Declaration
public const BorderType Dashed
Field Value
| Type | Description |
|---|---|
| BorderType |
Dotted
dot border
Declaration
public const BorderType Dotted
Field Value
| Type | Description |
|---|---|
| BorderType |
Double
double-line border
Declaration
public const BorderType Double
Field Value
| Type | Description |
|---|---|
| BorderType |
Hair
hair-line border
Declaration
public const BorderType Hair
Field Value
| Type | Description |
|---|---|
| BorderType |
Medium
Medium border
Declaration
public const BorderType Medium
Field Value
| Type | Description |
|---|---|
| BorderType |
MediumDashDot
medium dash-dot border
Declaration
public const BorderType MediumDashDot
Field Value
| Type | Description |
|---|---|
| BorderType |
MediumDashDotDot
medium dash-dot-dot border
Declaration
public const BorderType MediumDashDotDot
Field Value
| Type | Description |
|---|---|
| BorderType |
MediumDashed
Medium dashed border
Declaration
public const BorderType MediumDashed
Field Value
| Type | Description |
|---|---|
| BorderType |
None
No border
Declaration
public const BorderType None
Field Value
| Type | Description |
|---|---|
| BorderType |
SlantedDashDot
slanted dash-dot border
Declaration
public const BorderType SlantedDashDot
Field Value
| Type | Description |
|---|---|
| BorderType |
Thick
Thick border
Declaration
public const BorderType Thick
Field Value
| Type | Description |
|---|---|
| BorderType |
Thin
Thin border
Declaration
public const BorderType Thin
Field Value
| Type | Description |
|---|---|
| BorderType |
value__
Declaration
public short value__
Field Value
| Type | Description |
|---|---|
| System.Int16 |