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)
349
private static DashStyle BorderStyleToDashStyle(
ButtonBorderStyle
borderStyle)
353
case
ButtonBorderStyle
.Dotted:
355
case
ButtonBorderStyle
.Dashed:
357
case
ButtonBorderStyle
.Solid:
398
DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame),
ButtonBorderStyle
.Solid);
518
public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
524
case
ButtonBorderStyle
.None:
527
case
ButtonBorderStyle
.Dotted:
528
case
ButtonBorderStyle
.Dashed:
529
case
ButtonBorderStyle
.Solid:
532
case
ButtonBorderStyle
.Inset:
533
case
ButtonBorderStyle
.Outset:
547
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
548
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
549
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
550
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
566
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
567
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
568
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
569
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle)
707
case
ButtonBorderStyle
.None:
709
case
ButtonBorderStyle
.Dotted:
710
case
ButtonBorderStyle
.Dashed:
711
case
ButtonBorderStyle
.Solid:
713
if (!topColor.HasTransparency() && topStyle ==
ButtonBorderStyle
.Solid)
728
ButtonBorderStyle
.Dotted => DashStyle.Dot,
729
ButtonBorderStyle
.Dashed => DashStyle.Dash,
742
case
ButtonBorderStyle
.Inset:
743
case
ButtonBorderStyle
.Outset:
751
topStyle ==
ButtonBorderStyle
.Inset
766
case
ButtonBorderStyle
.None:
768
case
ButtonBorderStyle
.Dotted:
769
case
ButtonBorderStyle
.Dashed:
770
case
ButtonBorderStyle
.Solid:
772
if (!leftColor.HasTransparency() && leftStyle ==
ButtonBorderStyle
.Solid)
787
ButtonBorderStyle
.Dotted => DashStyle.Dot,
788
ButtonBorderStyle
.Dashed => DashStyle.Dash,
801
case
ButtonBorderStyle
.Inset:
802
case
ButtonBorderStyle
.Outset:
810
leftStyle ==
ButtonBorderStyle
.Inset
825
case
ButtonBorderStyle
.None:
827
case
ButtonBorderStyle
.Dotted:
828
case
ButtonBorderStyle
.Dashed:
829
case
ButtonBorderStyle
.Solid:
831
if (!bottomColor.HasTransparency() && bottomStyle ==
ButtonBorderStyle
.Solid)
851
ButtonBorderStyle
.Dotted => DashStyle.Dot,
852
ButtonBorderStyle
.Dashed => DashStyle.Dash,
870
case
ButtonBorderStyle
.Inset:
871
case
ButtonBorderStyle
.Outset:
879
bottomStyle !=
ButtonBorderStyle
.Inset
899
case
ButtonBorderStyle
.None:
901
case
ButtonBorderStyle
.Dotted:
902
case
ButtonBorderStyle
.Dashed:
903
case
ButtonBorderStyle
.Solid:
905
if (!rightColor.HasTransparency() && rightStyle ==
ButtonBorderStyle
.Solid)
925
ButtonBorderStyle
.Dotted => DashStyle.Dot,
926
ButtonBorderStyle
.Dashed => DashStyle.Dash,
944
case
ButtonBorderStyle
.Inset:
945
case
ButtonBorderStyle
.Outset:
953
rightStyle !=
ButtonBorderStyle
.Inset
1052
private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style)
1056
if (style ==
ButtonBorderStyle
.Inset)
1095
Debug.Assert(style ==
ButtonBorderStyle
.Outset, "Caller should have known how to use us.");
1141
ButtonBorderStyle
style =
ButtonBorderStyle
.Solid)
1145
if (color.HasTransparency() || style !=
ButtonBorderStyle
.Solid)
1153
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);