45 references to DrawRectangle
System.Drawing (1)
commonui\System\Drawing\Graphics.cs (1)
1411DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height);
System.Web.DataVisualization (2)
Common\General\Chart.cs (1)
375offScreen.DrawRectangle(pen, 0, 0, Width, Height);
Common\General\GdiGraphics.cs (1)
197 _graphics.DrawRectangle( pen, x, y, width, height );
System.Windows.Forms (33)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
608g.DrawRectangle(pen, r.X, r.Y, r.Width - 1, r.Height - 1);
winforms\Managed\System\WinForms\Control.cs (1)
9744e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
winforms\Managed\System\WinForms\ControlPaint.cs (5)
1100graphics.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1304graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.Height - 1); 1677graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1679graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1688graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
563g.DrawRectangle(this.textBorderPen, textBounds.X, textBounds.Y, textBounds.Width - 1, textBounds.Height - 1);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
662g.DrawRectangle(SystemPens.ControlText, relRect.X, relRect.Y, relRect.Width - 1, relRect.Height - 1); 760g.DrawRectangle(drawPen, outline.X, outline.Y, outline.Width - 1, outline.Height - 1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2063g.DrawRectangle(p, outline.X, outline.Y, outline.Width - 1, outline.Height - 1);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3566g.DrawRectangle(borderPen, 0, 0, sizeWindow.Width - 1, sizeWindow.Height - 1);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (9)
145 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 150 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width-1, bounds.Height -1); 175 e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, 0, 0, e.Item.Width - 1, e.Item.Height - 1); 233 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 245 g.DrawRectangle(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 399g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 402g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 427 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 432 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
821g.DrawRectangle(SystemPens.Control, 0, 0, image.Width - 1, image.Height - 1);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (9)
335g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 347g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 523g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 566g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 921g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 931g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 947g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1039g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1396g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
413g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
881g.DrawRectangle(p, 0, 0, this.Width - 1, this.Height - 1);
System.Windows.Forms.DataVisualization (2)
Common\General\Chart.cs (1)
375offScreen.DrawRectangle(pen, 0, 0, Width, Height);
Common\General\GdiGraphics.cs (1)
197 _graphics.DrawRectangle( pen, x, y, width, height );
System.Workflow.ComponentModel (7)
AuthoringOM\Design\DesignerWidgets.cs (3)
1226graphics.DrawRectangle(SystemPens.ControlDarkDark, this.formRectangle.X, this.formRectangle.Y, this.formRectangle.Width - 1, this.formRectangle.Height - 1); 1240graphics.DrawRectangle(SystemPens.ActiveCaption, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1); 3413graphics.DrawRectangle(Pens.Black, this.previewModeButtonRectangle.Left - 1, this.previewModeButtonRectangle.Top - 1, this.previewModeButtonRectangle.Width + 1, this.previewModeButtonRectangle.Height + 1);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
545e.Graphics.DrawRectangle(SystemPens.ControlDark, 0, 0, this.themePanel.ClientSize.Width - 1, this.themePanel.ClientSize.Height - 2);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
84graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.Top, activatedBounds.Width - 1, activatedBounds.Height - 1);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
122e.Graphics.DrawRectangle(ambientTheme.SelectionForegroundPen, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1);
AuthoringOM\Design\WorkflowLayouts.cs (1)
690graphics.DrawRectangle(ambientTheme.ForegroundPen, pageLayoutData.ViewablePageBounds.Left - 3, pageLayoutData.ViewablePageBounds.Top - 3, pageLayoutData.ViewablePageBounds.Width + 6, pageLayoutData.ViewablePageBounds.Height + 6);