47 references to TableLayoutPanelCellBorderStyle
System.Windows.Forms (26)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (7)
73
[DefaultValue(
TableLayoutPanelCellBorderStyle
.None)]
77
public
TableLayoutPanelCellBorderStyle
CellBorderStyle
85
if (value !=
TableLayoutPanelCellBorderStyle
.None)
340
TableLayoutPanelCellBorderStyle
cellBorderStyle = CellBorderStyle;
428
if (!HScroll && !VScroll && cellBorderStyle !=
TableLayoutPanelCellBorderStyle
.None)
440
if (cellBorderStyle ==
TableLayoutPanelCellBorderStyle
.Inset)
456
else if (cellBorderStyle ==
TableLayoutPanelCellBorderStyle
.Outset)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (3)
28
private
TableLayoutPanelCellBorderStyle
_borderStyle;
63
[DefaultValue(
TableLayoutPanelCellBorderStyle
.None)]
66
internal
TableLayoutPanelCellBorderStyle
CellBorderStyle
System\Windows\Forms\Rendering\ControlPaint.cs (16)
2320
TableLayoutPanelCellBorderStyle
borderStyle,
2332
case
TableLayoutPanelCellBorderStyle
.None:
2333
case
TableLayoutPanelCellBorderStyle
.Single:
2336
case
TableLayoutPanelCellBorderStyle
.Inset:
2337
case
TableLayoutPanelCellBorderStyle
.InsetDouble:
2344
case
TableLayoutPanelCellBorderStyle
.Outset:
2345
case
TableLayoutPanelCellBorderStyle
.OutsetDouble:
2346
case
TableLayoutPanelCellBorderStyle
.OutsetPartial:
2355
internal static void PaintTableCellBorder(
TableLayoutPanelCellBorderStyle
borderStyle, Graphics g, Rectangle bound)
2360
case
TableLayoutPanelCellBorderStyle
.None:
2363
case
TableLayoutPanelCellBorderStyle
.Single:
2367
case
TableLayoutPanelCellBorderStyle
.Inset:
2374
case
TableLayoutPanelCellBorderStyle
.InsetDouble:
2386
case
TableLayoutPanelCellBorderStyle
.Outset:
2393
case
TableLayoutPanelCellBorderStyle
.OutsetDouble:
2394
case
TableLayoutPanelCellBorderStyle
.OutsetPartial:
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ByteViewer.cs (1)
60
CellBorderStyle =
TableLayoutPanelCellBorderStyle
.Inset;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
840
if (Table.CellBorderStyle !=
TableLayoutPanelCellBorderStyle
.None)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
42
Assert.Equal(
TableLayoutPanelCellBorderStyle
.Inset, control.CellBorderStyle);
System.Windows.Forms.Tests (18)
SerializableTypesTests.cs (2)
274
CellBorderStyle =
TableLayoutPanelCellBorderStyle
.OutsetDouble,
308
Assert.Equal(
TableLayoutPanelCellBorderStyle
.None, result.CellBorderStyle); // This property is not serialized.
System\Windows\Forms\TableLayoutPanelTests.cs (16)
44
Assert.Equal(
TableLayoutPanelCellBorderStyle
.None, control.CellBorderStyle);
210
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.Inset, true, 1 };
211
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.InsetDouble, true, 1 };
212
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.None, resizeRedraw, 1 };
213
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.Outset, true, 1 };
214
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.OutsetDouble, true, 1 };
215
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.OutsetPartial, true, 1 };
216
yield return new object[] { resizeRedraw,
TableLayoutPanelCellBorderStyle
.Single, true, 1 };
222
public void TableLayoutPanel_CellBorderStyle_Set_GetReturnsExpected(bool resizeRedraw,
TableLayoutPanelCellBorderStyle
value, bool expectedResizeRedraw, int expectedLayoutCallCount)
251
public void TableLayoutPanel_CellBorderStyle_SetWithHandle_GetReturnsExpected(bool resizeRedraw,
TableLayoutPanelCellBorderStyle
value, bool expectedResizeRedraw, int expectedLayoutCallCount)
292
[InvalidEnumData<
TableLayoutPanelCellBorderStyle
>]
293
public void TableLayoutPanel_CellBorderStyle_SetInvalid_ThrowsArgumentOutOfRangeException(
TableLayoutPanelCellBorderStyle
value)
1412
foreach (
TableLayoutPanelCellBorderStyle
cellBorderStyle in Enum.GetValues(typeof(
TableLayoutPanelCellBorderStyle
)))
1427
public void TableLayoutPanel_OnPaintBackground_InvokeEmpty_Success(RightToLeft rightToLeft,
TableLayoutPanelCellBorderStyle
cellBorderStyle, bool hScroll, bool vScroll)
1467
public void TableLayoutPanel_OnPaintBackground_InvokeNotEmpty_Success(RightToLeft rightToLeft,
TableLayoutPanelCellBorderStyle
cellBorderStyle, bool hScroll, bool vScroll)