154 references to ButtonBorderStyle
System.Windows.Forms (91)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
750
(ButtonState == ButtonState.Normal) ?
ButtonBorderStyle
.Outset :
ButtonBorderStyle
.Inset);
816
ButtonBorderStyle
.Solid);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (16)
25
c, 1,
ButtonBorderStyle
.Outset,
26
c, 1,
ButtonBorderStyle
.Outset,
27
c, 2,
ButtonBorderStyle
.Inset,
28
c, 2,
ButtonBorderStyle
.Inset);
42
c, 1,
ButtonBorderStyle
.Solid,
43
c, 1,
ButtonBorderStyle
.Solid,
44
Control.BackColor, 2,
ButtonBorderStyle
.Outset,
45
Control.BackColor, 2,
ButtonBorderStyle
.Outset);
54
c, 1,
ButtonBorderStyle
.Solid,
55
c, 1,
ButtonBorderStyle
.Solid,
56
c, 1,
ButtonBorderStyle
.None,
57
c, 1,
ButtonBorderStyle
.None);
81
c, 1,
ButtonBorderStyle
.None,
82
c, 1,
ButtonBorderStyle
.None,
83
c, 1,
ButtonBorderStyle
.Solid,
84
c, 1,
ButtonBorderStyle
.None);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (4)
37
leftColor: Color.Black, leftWidth: 1, leftStyle:
ButtonBorderStyle
.Dashed,
38
topColor: Color.Black, topWidth: 1, topStyle:
ButtonBorderStyle
.Dashed,
39
rightColor: Color.Black, rightWidth: 1, rightStyle:
ButtonBorderStyle
.Dashed,
40
bottomColor: Color.Black, bottomWidth: 1, bottomStyle:
ButtonBorderStyle
.Dashed);
System\Windows\Forms\Rendering\ControlPaint.cs (67)
377
private static DashStyle BorderStyleToDashStyle(
ButtonBorderStyle
borderStyle)
381
case
ButtonBorderStyle
.Dotted:
383
case
ButtonBorderStyle
.Dashed:
385
case
ButtonBorderStyle
.Solid:
426
DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame),
ButtonBorderStyle
.Solid);
546
public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
552
case
ButtonBorderStyle
.None:
555
case
ButtonBorderStyle
.Dotted:
556
case
ButtonBorderStyle
.Dashed:
557
case
ButtonBorderStyle
.Solid:
560
case
ButtonBorderStyle
.Inset:
561
case
ButtonBorderStyle
.Outset:
575
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
576
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
577
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
578
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
594
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
595
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
596
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
597
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
735
case
ButtonBorderStyle
.None:
737
case
ButtonBorderStyle
.Dotted:
738
case
ButtonBorderStyle
.Dashed:
739
case
ButtonBorderStyle
.Solid:
741
if (!topColor.HasTransparency() && topStyle ==
ButtonBorderStyle
.Solid)
756
ButtonBorderStyle
.Dotted => DashStyle.Dot,
757
ButtonBorderStyle
.Dashed => DashStyle.Dash,
770
case
ButtonBorderStyle
.Inset:
771
case
ButtonBorderStyle
.Outset:
779
topStyle ==
ButtonBorderStyle
.Inset
794
case
ButtonBorderStyle
.None:
796
case
ButtonBorderStyle
.Dotted:
797
case
ButtonBorderStyle
.Dashed:
798
case
ButtonBorderStyle
.Solid:
800
if (!leftColor.HasTransparency() && leftStyle ==
ButtonBorderStyle
.Solid)
815
ButtonBorderStyle
.Dotted => DashStyle.Dot,
816
ButtonBorderStyle
.Dashed => DashStyle.Dash,
829
case
ButtonBorderStyle
.Inset:
830
case
ButtonBorderStyle
.Outset:
838
leftStyle ==
ButtonBorderStyle
.Inset
853
case
ButtonBorderStyle
.None:
855
case
ButtonBorderStyle
.Dotted:
856
case
ButtonBorderStyle
.Dashed:
857
case
ButtonBorderStyle
.Solid:
859
if (!bottomColor.HasTransparency() && bottomStyle ==
ButtonBorderStyle
.Solid)
879
ButtonBorderStyle
.Dotted => DashStyle.Dot,
880
ButtonBorderStyle
.Dashed => DashStyle.Dash,
898
case
ButtonBorderStyle
.Inset:
899
case
ButtonBorderStyle
.Outset:
907
bottomStyle !=
ButtonBorderStyle
.Inset
927
case
ButtonBorderStyle
.None:
929
case
ButtonBorderStyle
.Dotted:
930
case
ButtonBorderStyle
.Dashed:
931
case
ButtonBorderStyle
.Solid:
933
if (!rightColor.HasTransparency() && rightStyle ==
ButtonBorderStyle
.Solid)
953
ButtonBorderStyle
.Dotted => DashStyle.Dot,
954
ButtonBorderStyle
.Dashed => DashStyle.Dash,
972
case
ButtonBorderStyle
.Inset:
973
case
ButtonBorderStyle
.Outset:
981
rightStyle !=
ButtonBorderStyle
.Inset
1080
private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
1084
if (style ==
ButtonBorderStyle
.Inset)
1123
Debug.Assert(style ==
ButtonBorderStyle
.Outset, "Caller should have known how to use us.");
1169
ButtonBorderStyle
style =
ButtonBorderStyle
.Solid)
1173
if (color.HasTransparency() || style !=
ButtonBorderStyle
.Solid)
1181
if (style ==
ButtonBorderStyle
.Solid)
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101
ControlPaint.DrawBorder(Graphics, Bounds, SystemColors.WindowFrame,
ButtonBorderStyle
.Solid);
System.Windows.Forms.Design (5)
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
387
ButtonBorderStyle
.Solid);
404
SystemColors.Control, 2,
ButtonBorderStyle
.Inset,
405
SystemColors.Control, 2,
ButtonBorderStyle
.Inset,
406
SystemColors.Control, 2,
ButtonBorderStyle
.Inset,
407
SystemColors.Control, 2,
ButtonBorderStyle
.Inset);
System.Windows.Forms.Tests (58)
System\Windows\Forms\ControlPaintTests.cs (51)
542
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
561
public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyle_Success(Rectangle bounds, Color color,
ButtonBorderStyle
style)
572
[InvalidEnumData<
ButtonBorderStyle
>]
573
[InlineData(
ButtonBorderStyle
.None)]
574
public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyleInvalidStyle_Nop(
ButtonBorderStyle
style)
586
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
617
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
618
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
619
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
620
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
632
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
659
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
660
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
661
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
662
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
670
[InlineData(
ButtonBorderStyle
.Dashed)]
671
[InlineData(
ButtonBorderStyle
.Dotted)]
672
[InlineData(
ButtonBorderStyle
.Inset)]
673
[InlineData(
ButtonBorderStyle
.Outset)]
674
[InlineData(
ButtonBorderStyle
.Solid)]
675
public void ControlPaint_DrawBorder_NullGraphics_ThrowsArgumentNullException(
ButtonBorderStyle
style)
681
[EnumData<
ButtonBorderStyle
>]
682
[InvalidEnumData<
ButtonBorderStyle
>]
683
public void ControlPaint_DrawBorder_NullGraphicsComplex_ThrowsArgumentNullException(
ButtonBorderStyle
style)
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
24
ControlPaint.DrawBorder(graphics, bounds, Color.Blue,
ButtonBorderStyle
.Solid);
43
ControlPaint.DrawBorder(graphics, bounds, Color.Gray,
ButtonBorderStyle
.Inset);
103
ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control,
ButtonBorderStyle
.Inset);
178
ControlPaint.DrawBorder(graphics, bounds, Color.PeachPuff,
ButtonBorderStyle
.Outset);
252
ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control,
ButtonBorderStyle
.Outset);
326
ControlPaint.DrawBorder(graphics, bounds, Color.Green,
ButtonBorderStyle
.Dotted);
354
ControlPaint.DrawBorder(graphics, bounds, Color.Pink,
ButtonBorderStyle
.Dashed);