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