154 references to ButtonBorderStyle
System.Windows.Forms (91)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
750(ButtonState == ButtonState.Normal) ? ButtonBorderStyle.Outset : ButtonBorderStyle.Inset); 816ButtonBorderStyle.Solid);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (16)
25c, 1, ButtonBorderStyle.Outset, 26c, 1, ButtonBorderStyle.Outset, 27c, 2, ButtonBorderStyle.Inset, 28c, 2, ButtonBorderStyle.Inset); 42c, 1, ButtonBorderStyle.Solid, 43c, 1, ButtonBorderStyle.Solid, 44Control.BackColor, 2, ButtonBorderStyle.Outset, 45Control.BackColor, 2, ButtonBorderStyle.Outset); 54c, 1, ButtonBorderStyle.Solid, 55c, 1, ButtonBorderStyle.Solid, 56c, 1, ButtonBorderStyle.None, 57c, 1, ButtonBorderStyle.None); 81c, 1, ButtonBorderStyle.None, 82c, 1, ButtonBorderStyle.None, 83c, 1, ButtonBorderStyle.Solid, 84c, 1, ButtonBorderStyle.None);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (4)
37leftColor: Color.Black, leftWidth: 1, leftStyle: ButtonBorderStyle.Dashed, 38topColor: Color.Black, topWidth: 1, topStyle: ButtonBorderStyle.Dashed, 39rightColor: Color.Black, rightWidth: 1, rightStyle: ButtonBorderStyle.Dashed, 40bottomColor: Color.Black, bottomWidth: 1, bottomStyle: ButtonBorderStyle.Dashed);
System\Windows\Forms\Rendering\ControlPaint.cs (67)
377private static DashStyle BorderStyleToDashStyle(ButtonBorderStyle borderStyle) 381case ButtonBorderStyle.Dotted: 383case ButtonBorderStyle.Dashed: 385case ButtonBorderStyle.Solid: 426DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame), ButtonBorderStyle.Solid); 553public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 559case ButtonBorderStyle.None: 562case ButtonBorderStyle.Dotted: 563case ButtonBorderStyle.Dashed: 564case ButtonBorderStyle.Solid: 567case ButtonBorderStyle.Inset: 568case ButtonBorderStyle.Outset: 582Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, 583Color topColor, int topWidth, ButtonBorderStyle topStyle, 584Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, 585Color bottomColor, int bottomWidth, ButtonBorderStyle bottomStyle) 601Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, 602Color topColor, int topWidth, ButtonBorderStyle topStyle, 603Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, 604Color bottomColor, int bottomWidth, ButtonBorderStyle bottomStyle) 742case ButtonBorderStyle.None: 744case ButtonBorderStyle.Dotted: 745case ButtonBorderStyle.Dashed: 746case ButtonBorderStyle.Solid: 748if (!topColor.HasTransparency() && topStyle == ButtonBorderStyle.Solid) 763ButtonBorderStyle.Dotted => DashStyle.Dot, 764ButtonBorderStyle.Dashed => DashStyle.Dash, 777case ButtonBorderStyle.Inset: 778case ButtonBorderStyle.Outset: 786topStyle == ButtonBorderStyle.Inset 801case ButtonBorderStyle.None: 803case ButtonBorderStyle.Dotted: 804case ButtonBorderStyle.Dashed: 805case ButtonBorderStyle.Solid: 807if (!leftColor.HasTransparency() && leftStyle == ButtonBorderStyle.Solid) 822ButtonBorderStyle.Dotted => DashStyle.Dot, 823ButtonBorderStyle.Dashed => DashStyle.Dash, 836case ButtonBorderStyle.Inset: 837case ButtonBorderStyle.Outset: 845leftStyle == ButtonBorderStyle.Inset 860case ButtonBorderStyle.None: 862case ButtonBorderStyle.Dotted: 863case ButtonBorderStyle.Dashed: 864case ButtonBorderStyle.Solid: 866if (!bottomColor.HasTransparency() && bottomStyle == ButtonBorderStyle.Solid) 886ButtonBorderStyle.Dotted => DashStyle.Dot, 887ButtonBorderStyle.Dashed => DashStyle.Dash, 905case ButtonBorderStyle.Inset: 906case ButtonBorderStyle.Outset: 914bottomStyle != ButtonBorderStyle.Inset 934case ButtonBorderStyle.None: 936case ButtonBorderStyle.Dotted: 937case ButtonBorderStyle.Dashed: 938case ButtonBorderStyle.Solid: 940if (!rightColor.HasTransparency() && rightStyle == ButtonBorderStyle.Solid) 960ButtonBorderStyle.Dotted => DashStyle.Dot, 961ButtonBorderStyle.Dashed => DashStyle.Dash, 979case ButtonBorderStyle.Inset: 980case ButtonBorderStyle.Outset: 988rightStyle != ButtonBorderStyle.Inset 1087private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 1091if (style == ButtonBorderStyle.Inset) 1130Debug.Assert(style == ButtonBorderStyle.Outset, "Caller should have known how to use us."); 1176ButtonBorderStyle style = ButtonBorderStyle.Solid) 1180if (color.HasTransparency() || style != ButtonBorderStyle.Solid) 1188if (style == ButtonBorderStyle.Solid)
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101ControlPaint.DrawBorder(Graphics, Bounds, SystemColors.WindowFrame, ButtonBorderStyle.Solid);
System.Windows.Forms.Design (5)
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
387ButtonBorderStyle.Solid); 404SystemColors.Control, 2, ButtonBorderStyle.Inset, 405SystemColors.Control, 2, ButtonBorderStyle.Inset, 406SystemColors.Control, 2, ButtonBorderStyle.Inset, 407SystemColors.Control, 2, ButtonBorderStyle.Inset);
System.Windows.Forms.Tests (58)
System\Windows\Forms\ControlPaintTests.cs (51)
542foreach (ButtonBorderStyle style in new ButtonBorderStyle[] { ButtonBorderStyle.Dashed, ButtonBorderStyle.Dotted, ButtonBorderStyle.Inset, ButtonBorderStyle.None, ButtonBorderStyle.Outset, ButtonBorderStyle.Solid, ButtonBorderStyle.None - 1, ButtonBorderStyle.Outset + 1 }) 561public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyle_Success(Rectangle bounds, Color color, ButtonBorderStyle style) 572[InvalidEnumData<ButtonBorderStyle>] 573[InlineData(ButtonBorderStyle.None)] 574public void ControlPaint_DrawBorder_GraphicsRectangleColorButtonBorderStyleInvalidStyle_Nop(ButtonBorderStyle style) 586foreach (ButtonBorderStyle style in new ButtonBorderStyle[] { ButtonBorderStyle.Dashed, ButtonBorderStyle.Dotted, ButtonBorderStyle.Inset, ButtonBorderStyle.None, ButtonBorderStyle.Outset, ButtonBorderStyle.Solid, ButtonBorderStyle.None - 1, ButtonBorderStyle.Outset + 1 }) 617Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, 618Color topColor, int topWidth, ButtonBorderStyle topStyle, 619Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, 620Color bottomColor, int bottomWidth, ButtonBorderStyle bottomStyle) 632foreach (ButtonBorderStyle style in new ButtonBorderStyle[] { ButtonBorderStyle.Dashed, ButtonBorderStyle.Dotted, ButtonBorderStyle.Inset, ButtonBorderStyle.None, ButtonBorderStyle.Outset, ButtonBorderStyle.Solid, ButtonBorderStyle.None - 1, ButtonBorderStyle.Outset + 1 }) 659Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, 660Color topColor, int topWidth, ButtonBorderStyle topStyle, 661Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, 662Color 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)] 675public void ControlPaint_DrawBorder_NullGraphics_ThrowsArgumentNullException(ButtonBorderStyle style) 681[EnumData<ButtonBorderStyle>] 682[InvalidEnumData<ButtonBorderStyle>] 683public void ControlPaint_DrawBorder_NullGraphicsComplex_ThrowsArgumentNullException(ButtonBorderStyle style)
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
24ControlPaint.DrawBorder(graphics, bounds, Color.Blue, ButtonBorderStyle.Solid); 43ControlPaint.DrawBorder(graphics, bounds, Color.Gray, ButtonBorderStyle.Inset); 103ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Inset); 178ControlPaint.DrawBorder(graphics, bounds, Color.PeachPuff, ButtonBorderStyle.Outset); 252ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Outset); 326ControlPaint.DrawBorder(graphics, bounds, Color.Green, ButtonBorderStyle.Dotted); 354ControlPaint.DrawBorder(graphics, bounds, Color.Pink, ButtonBorderStyle.Dashed);