29 references to DrawFocusRectangle
System.Windows.Forms (24)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
370
ControlPaint.
DrawFocusRectangle
(g, r, Control.ForeColor, Control.BackColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
890
ControlPaint.
DrawFocusRectangle
(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, cellStyle.ForeColor);
950
ControlPaint.
DrawFocusRectangle
(
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1143
ControlPaint.
DrawFocusRectangle
(g, valBounds, cellStyle.BackColor, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
2266
ControlPaint.
DrawFocusRectangle
(g, focusBounds, Color.Empty, cellStyle.ForeColor);
2277
ControlPaint.
DrawFocusRectangle
(g, focusBounds, Color.Empty, cellStyle.ForeColor);
2282
ControlPaint.
DrawFocusRectangle
(g, textBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
897
ControlPaint.
DrawFocusRectangle
(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
1003
ControlPaint.
DrawFocusRectangle
(g, focusBounds, Color.Empty, brushColor);
1044
ControlPaint.
DrawFocusRectangle
(g, errorBounds, Color.Empty, brushColor);
1059
ControlPaint.
DrawFocusRectangle
(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1197
ControlPaint.
DrawFocusRectangle
(graphics, bounds, Color.Empty, backColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
711
ControlPaint.
DrawFocusRectangle
(graphics, valBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1326
ControlPaint.
DrawFocusRectangle
(g, Rectangle.Ceiling(focusRectangle), ForeColor, BackColor);
1332
ControlPaint.
DrawFocusRectangle
(g, Rectangle.Ceiling(rect), ForeColor, BackColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
734
ControlPaint.
DrawFocusRectangle
(e.Graphics, emptyRectangle, foreColor, backColor);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
77
ControlPaint.
DrawFocusRectangle
(Graphics, UpdateBounds(Bounds, drawText: false), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
113
ControlPaint.
DrawFocusRectangle
(Graphics, Rectangle.Inflate(bounds, -1, -1), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
125
ControlPaint.
DrawFocusRectangle
(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
107
ControlPaint.
DrawFocusRectangle
(pevent.Graphics, dropDownButtonRect, ForeColor, BackColor);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2847
ControlPaint.
DrawFocusRectangle
(g, bounds, color, SystemColors.Highlight);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1464
ControlPaint.
DrawFocusRectangle
(g, r, ForeColor, BackColor);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1398
=>
DrawFocusRectangle
(graphics, rectangle, SystemColors.ControlText, SystemColors.Control);
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
137
ControlPaint.
DrawFocusRectangle
(GraphicsInternal, Bounds, ForeColor, BackColor);
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
394
ControlPaint.
DrawFocusRectangle
(
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1018
ControlPaint.
DrawFocusRectangle
(e.Graphics, focusRectangle, e.ForeColor, e.BackColor);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ControlPaintTests.cs (3)
1210
ControlPaint.
DrawFocusRectangle
(graphics, rectangle, foreColor, backColor);
1213
ControlPaint.
DrawFocusRectangle
(graphics, rectangle, foreColor, backColor);
1220
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawFocusRectangle
(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue));