67 references to DrawRectangle
System.Windows.Forms (49)
winforms\Managed\System\WinForms\ComboBox.cs (13)
5994
g.
DrawRectangle
(outerBorderPen, outerBorder);
5996
g.
DrawRectangle
(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
5999
g.
DrawRectangle
(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6004
g.
DrawRectangle
(outerBorderPen, outerBorder);
6006
g.
DrawRectangle
(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
6009
g.
DrawRectangle
(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6017
g.
DrawRectangle
(innerBorderPen, innerBorder);
6018
g.
DrawRectangle
(innerBorderPen, innerInnerBorder);
6022
g.
DrawRectangle
(innerBorderPen, innerBorder);
6023
g.
DrawRectangle
(innerBorderPen, innerInnerBorder);
6040
g.
DrawRectangle
(innerPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
6043
g.
DrawRectangle
(innerPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6047
g.
DrawRectangle
(borderPen, outerBorder);
winforms\Managed\System\WinForms\ControlPaint.cs (6)
1335
graphics.
DrawRectangle
(GetFocusPen(color,
1440
graphics.
DrawRectangle
(pen, rectangle);
1987
graphics.
DrawRectangle
(borderPen, bounds);
2454
g.
DrawRectangle
(SystemPens.ControlDark, bound);
2468
g.
DrawRectangle
(SystemPens.Control, bound);
2493
g.
DrawRectangle
(SystemPens.Control, bound);
winforms\Managed\System\WinForms\DataGrid.cs (2)
7139
g.
DrawRectangle
(SystemPens.Control, boundingRect);
7312
g.
DrawRectangle
(pen, bounds);
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
413
g.
DrawRectangle
(pen, bounds);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
2217
g.
DrawRectangle
(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width-1, valBounds.Height-1));
2486
g.
DrawRectangle
(SystemPens.ControlDark, dropRect);
2574
g.
DrawRectangle
(SystemPens.ControlDark, valBounds);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
19869
g.
DrawRectangle
(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.Height - 1));
19879
g.
DrawRectangle
(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.Height - 1));
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
171
graphics.
DrawRectangle
(SystemPens.ControlDarkDark, r);
winforms\Managed\System\WinForms\ListBox.cs (2)
2282
g.
DrawRectangle
(pen, rect);
2285
g.
DrawRectangle
(SystemPens.Window, rect);
winforms\Managed\System\WinForms\ListView.cs (2)
6232
g.
DrawRectangle
(new Pen(VisualStyleInformation.TextControlBorder), rect);
6234
g.
DrawRectangle
(SystemPens.Window, rect);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
3183
g.
DrawRectangle
(pen, rect);
3186
g.
DrawRectangle
(SystemPens.Window, rect);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
636
pevent.Graphics.
DrawRectangle
(Pens.Black, box);
646
pevent.Graphics.
DrawRectangle
(Pens.Black, box);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1737
e.Graphics.
DrawRectangle
(pen, rect);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5070
e.Graphics.
DrawRectangle
(borderPen, r);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2151
g.
DrawRectangle
(SystemPens.WindowText, rectPaint);
winforms\Managed\System\WinForms\TextBox.cs (2)
851
g.
DrawRectangle
(pen, rect);
854
g.
DrawRectangle
(SystemPens.Window, rect);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (3)
95
e.Graphics.
DrawRectangle
(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1));
151
g.
DrawRectangle
(SystemPens.ButtonHighlight, dropDownRect);
304
g.
DrawRectangle
(SystemPens.ButtonShadow, bounds);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
233
e.Graphics.
DrawRectangle
(new Pen(SystemColors.ControlDark), bounds);
winforms\Managed\System\WinForms\TreeView.cs (2)
3138
g.
DrawRectangle
(new Pen(VisualStyleInformation.TextControlBorder), rect);
3140
g.
DrawRectangle
(SystemPens.Window, rect);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
830
e.Graphics.
DrawRectangle
(pen, backRect);
847
e.Graphics.
DrawRectangle
(pen, backRect);
System.Workflow.Activities (1)
Designers\StateDesigner.CommentLayoutGlyph.cs (1)
62
graphics.
DrawRectangle
(ambientTheme.CommentIndicatorPen, bounds);
System.Workflow.ComponentModel (17)
AuthoringOM\Design\ActivityDesigner.cs (1)
3083
graphics.
DrawRectangle
(SystemPens.ControlDarkDark, activatedBounds);
AuthoringOM\Design\DesignerHelpers.cs (6)
245
graphics.
DrawRectangle
(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionPatternPen, selectionRect);
263
graphics.
DrawRectangle
(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForegroundPen, grabHandle);
273
graphics.
DrawRectangle
(patternPen, grabHandle);
314
graphics.
DrawRectangle
(darkPen, bounds);
378
graphics.
DrawRectangle
(CompositeDesignerTheme.ExpandButtonBorderPen, boundingRect);
582
graphics.
DrawRectangle
(Pens.Red, bounds);
AuthoringOM\Design\DesignerWidgets.cs (6)
172
graphics.
DrawRectangle
(Pens.Black, buttonBounds);
1900
e.Graphics.
DrawRectangle
(SystemPens.Highlight, tabItemRectangle);
1909
e.Graphics.
DrawRectangle
(SystemPens.ControlDarkDark, tabItemRectangle);
2749
graphics.
DrawRectangle
(ambientTheme.SelectionForegroundPen, itemRectangle);
3422
graphics.
DrawRectangle
(designerTheme.PreviewBorderPen, this.canvasBounds);
3428
graphics.
DrawRectangle
(SystemPens.ControlDark, canvasRect);
AuthoringOM\Design\Glyphs\CommentGlyph.cs (1)
53
graphics.
DrawRectangle
(ambientTheme.CommentIndicatorPen, bounds);
AuthoringOM\Design\WorkflowLayouts.cs (2)
263
graphics.
DrawRectangle
(AmbientTheme.WorkflowBorderPen, rootBounds);
687
graphics.
DrawRectangle
(Pens.Black, pageLayoutData.PageBounds);
AuthoringOM\Design\WorkflowPrinting.cs (1)
134
graphics.
DrawRectangle
(ambientTheme.ForegroundPen, boundingRectangle);