23 references to DrawFocusRectangle
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (4)
119
ControlPaint.
DrawFocusRectangle
(graphics, contentBounds);
166
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
193
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
277
ControlPaint.
DrawFocusRectangle
(graphics, contentBounds);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
151
ControlPaint.
DrawFocusRectangle
(g, textBounds);
223
ControlPaint.
DrawFocusRectangle
(g, textBounds);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
151
ControlPaint.
DrawFocusRectangle
(g, textBounds);
244
ControlPaint.
DrawFocusRectangle
(g, textBounds);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16703
ControlPaint.
DrawFocusRectangle
(g, GetGridFocusRectangle());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
129
ControlPaint.
DrawFocusRectangle
(g, focusRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2213
ControlPaint.
DrawFocusRectangle
(g, new Rectangle(_offset2Units, _offset2Units, Size.Width - doubleOffset, Size.Height - doubleOffset));
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (4)
47
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
84
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
104
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
135
ControlPaint.
DrawFocusRectangle
(g, contentBounds);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
730
ControlPaint.
DrawFocusRectangle
(e.Graphics, focusRect);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
591
ControlPaint.
DrawFocusRectangle
(g, res);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
155
ControlPaint.
DrawFocusRectangle
(g, new Rectangle(2, 2, Width - 5, Height - 5));
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
275
ControlPaint.
DrawFocusRectangle
(e.Graphics, rc);
281
ControlPaint.
DrawFocusRectangle
(e.Graphics, rc);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ControlPaintTests.cs (3)
1179
ControlPaint.
DrawFocusRectangle
(graphics, rectangle);
1182
ControlPaint.
DrawFocusRectangle
(graphics, rectangle);
1219
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawFocusRectangle
(null, new Rectangle(1, 2, 3, 4)));