154 references to ButtonBorderStyle
System.Windows.Forms (91)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
753
(ButtonState == ButtonState.Normal) ?
ButtonBorderStyle
.Outset :
ButtonBorderStyle
.Inset);
819
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);
80
c, 1,
ButtonBorderStyle
.None,
81
c, 1,
ButtonBorderStyle
.None,
82
c, 1,
ButtonBorderStyle
.Solid,
83
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)
352
private static DashStyle BorderStyleToDashStyle(
ButtonBorderStyle
borderStyle)
356
case
ButtonBorderStyle
.Dotted:
358
case
ButtonBorderStyle
.Dashed:
360
case
ButtonBorderStyle
.Solid:
401
DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame),
ButtonBorderStyle
.Solid);
521
public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
527
case
ButtonBorderStyle
.None:
530
case
ButtonBorderStyle
.Dotted:
531
case
ButtonBorderStyle
.Dashed:
532
case
ButtonBorderStyle
.Solid:
535
case
ButtonBorderStyle
.Inset:
536
case
ButtonBorderStyle
.Outset:
550
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
551
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
552
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
553
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
569
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
570
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
571
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
572
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
710
case
ButtonBorderStyle
.None:
712
case
ButtonBorderStyle
.Dotted:
713
case
ButtonBorderStyle
.Dashed:
714
case
ButtonBorderStyle
.Solid:
716
if (!topColor.HasTransparency() && topStyle ==
ButtonBorderStyle
.Solid)
731
ButtonBorderStyle
.Dotted => DashStyle.Dot,
732
ButtonBorderStyle
.Dashed => DashStyle.Dash,
745
case
ButtonBorderStyle
.Inset:
746
case
ButtonBorderStyle
.Outset:
754
topStyle ==
ButtonBorderStyle
.Inset
769
case
ButtonBorderStyle
.None:
771
case
ButtonBorderStyle
.Dotted:
772
case
ButtonBorderStyle
.Dashed:
773
case
ButtonBorderStyle
.Solid:
775
if (!leftColor.HasTransparency() && leftStyle ==
ButtonBorderStyle
.Solid)
790
ButtonBorderStyle
.Dotted => DashStyle.Dot,
791
ButtonBorderStyle
.Dashed => DashStyle.Dash,
804
case
ButtonBorderStyle
.Inset:
805
case
ButtonBorderStyle
.Outset:
813
leftStyle ==
ButtonBorderStyle
.Inset
828
case
ButtonBorderStyle
.None:
830
case
ButtonBorderStyle
.Dotted:
831
case
ButtonBorderStyle
.Dashed:
832
case
ButtonBorderStyle
.Solid:
834
if (!bottomColor.HasTransparency() && bottomStyle ==
ButtonBorderStyle
.Solid)
854
ButtonBorderStyle
.Dotted => DashStyle.Dot,
855
ButtonBorderStyle
.Dashed => DashStyle.Dash,
873
case
ButtonBorderStyle
.Inset:
874
case
ButtonBorderStyle
.Outset:
882
bottomStyle !=
ButtonBorderStyle
.Inset
902
case
ButtonBorderStyle
.None:
904
case
ButtonBorderStyle
.Dotted:
905
case
ButtonBorderStyle
.Dashed:
906
case
ButtonBorderStyle
.Solid:
908
if (!rightColor.HasTransparency() && rightStyle ==
ButtonBorderStyle
.Solid)
928
ButtonBorderStyle
.Dotted => DashStyle.Dot,
929
ButtonBorderStyle
.Dashed => DashStyle.Dash,
947
case
ButtonBorderStyle
.Inset:
948
case
ButtonBorderStyle
.Outset:
956
rightStyle !=
ButtonBorderStyle
.Inset
1055
private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
1059
if (style ==
ButtonBorderStyle
.Inset)
1098
Debug.Assert(style ==
ButtonBorderStyle
.Outset, "Caller should have known how to use us.");
1144
ButtonBorderStyle
style =
ButtonBorderStyle
.Solid)
1148
if (color.HasTransparency() || style !=
ButtonBorderStyle
.Solid)
1156
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)
540
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
559
public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyle_Success(Rectangle bounds, Color color,
ButtonBorderStyle
style)
570
[InvalidEnumData<
ButtonBorderStyle
>]
571
[InlineData(
ButtonBorderStyle
.None)]
572
public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyleInvalidStyle_Nop(
ButtonBorderStyle
style)
584
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
615
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
616
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
617
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
618
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
630
foreach (
ButtonBorderStyle
style in new
ButtonBorderStyle
[] {
ButtonBorderStyle
.Dashed,
ButtonBorderStyle
.Dotted,
ButtonBorderStyle
.Inset,
ButtonBorderStyle
.None,
ButtonBorderStyle
.Outset,
ButtonBorderStyle
.Solid,
ButtonBorderStyle
.None - 1,
ButtonBorderStyle
.Outset + 1 })
657
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
658
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
659
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
660
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
668
[InlineData(
ButtonBorderStyle
.Dashed)]
669
[InlineData(
ButtonBorderStyle
.Dotted)]
670
[InlineData(
ButtonBorderStyle
.Inset)]
671
[InlineData(
ButtonBorderStyle
.Outset)]
672
[InlineData(
ButtonBorderStyle
.Solid)]
673
public void ControlPaint_DrawBorder_NullGraphics_ThrowsArgumentNullException(
ButtonBorderStyle
style)
679
[EnumData<
ButtonBorderStyle
>]
680
[InvalidEnumData<
ButtonBorderStyle
>]
681
public void ControlPaint_DrawBorder_NullGraphicsComplex_ThrowsArgumentNullException(
ButtonBorderStyle
style)
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
22
ControlPaint.DrawBorder(graphics, bounds, Color.Blue,
ButtonBorderStyle
.Solid);
41
ControlPaint.DrawBorder(graphics, bounds, Color.Gray,
ButtonBorderStyle
.Inset);
101
ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control,
ButtonBorderStyle
.Inset);
176
ControlPaint.DrawBorder(graphics, bounds, Color.PeachPuff,
ButtonBorderStyle
.Outset);
250
ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control,
ButtonBorderStyle
.Outset);
324
ControlPaint.DrawBorder(graphics, bounds, Color.Green,
ButtonBorderStyle
.Dotted);
352
ControlPaint.DrawBorder(graphics, bounds, Color.Pink,
ButtonBorderStyle
.Dashed);