16 references to DrawBorder
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
749ControlPaint.DrawBorder(
System\Windows\Forms\Rendering\ControlPaint.cs (1)
401DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame), ButtonBorderStyle.Solid);
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101ControlPaint.DrawBorder(Graphics, Bounds, SystemColors.WindowFrame, ButtonBorderStyle.Solid);
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
383ControlPaint.DrawBorder(
System.Windows.Forms.Tests (12)
System\Windows\Forms\ControlPaintTests.cs (5)
563ControlPaint.DrawBorder(graphics, bounds, color, style); 566ControlPaint.DrawBorder(graphics, bounds, color, style); 576ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.Red, style); 579ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.Red, style); 675Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, 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);