TableLayoutPanelCellBorderStyle Enumeration
Specifies the border style of a cell in a table layout control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Member name | Description | |
|---|---|---|
| Inset | A single-line sunken border. | |
| InsetDouble | A double-line sunken border. | |
| None | No borders. | |
| Outset | A single-line raised border. | |
| OutsetDouble | A double-line raised border. | |
| OutsetPartial | A single-line border containing a raised portion. | |
| Single | A single-line border. |
The TableLayoutPanelCellBorderStyle enumeration represents the different border style options for a cell in a TableLayoutPanel. The width of the cell border for each style is determined by the TableLayoutPanel class. The space for the border is taken from the TableLayoutPanel control's DisplayRectangle.
The following example shows how to use the TableLayoutPanelCellBorderStyle enumeration to set the CellBorderStyle for a TableLayoutPanel control. This code example is part of a larger example provided for the TableLayoutPanel control.
Available since 2.0