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