130 references to SystemPens
System.Web.Mobile (2)
UI\MobileControls\Design\Util\GroupLabel.cs (2)
51g.DrawLine(SystemPens.ControlDark, etchLeft, etchTop, r.Width, etchTop); 54g.DrawLine(SystemPens.ControlLightLight, etchLeft, etchTop, r.Width, etchTop);
System.Windows.Forms (94)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
603pen = SystemPens.FromSystemColor(c);
winforms\Managed\System\WinForms\ComboBox.cs (3)
5993Pen outerBorderPen = SystemPens.FromSystemColor(outerBorderColor); 6016Pen innerBorderPen = SystemPens.FromSystemColor(innerBorderColor); 6036Pen innerPen = (comboBox.Enabled) ? borderPen : SystemPens.Control;
winforms\Managed\System\WinForms\ControlPaint.cs (22)
1028Pen pen = stockColor ? SystemPens.ControlLightLight : new Pen(hls.Lighter(1.0f)); 1035pen = SystemPens.ControlDarkDark; 1047pen = SystemPens.ControlLight; 1050pen = SystemPens.Control; 1063pen = SystemPens.ControlDark; 1091pen = SystemPens.FromSystemColor(color); 1303Pen pen = SystemPens.ControlDark; 2424g.DrawLine(SystemPens.ControlDark, x, y, right - 1, y); 2425g.DrawLine(SystemPens.ControlDark, x, y, x, bottom - 1); 2439g.DrawLine(SystemPens.ControlDark, right - 1, y, right - 1, bottom - 1); 2440g.DrawLine(SystemPens.ControlDark, x, bottom - 1, right - 1, bottom - 1); 2454g.DrawRectangle(SystemPens.ControlDark, bound); 2463g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2464g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2468g.DrawRectangle(SystemPens.Control, bound); 2477g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2478g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2482g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2483g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2493g.DrawRectangle(SystemPens.Control, bound); 2497g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2498g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
winforms\Managed\System\WinForms\DataGrid.cs (2)
7139g.DrawRectangle(SystemPens.Control, boundingRect); 7309Pen pen = SystemPens.WindowFrame;
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
51private Pen gridLinePen = SystemPens.Control;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
662g.DrawRectangle(SystemPens.ControlText, relRect.X, relRect.Y, relRect.Width - 1, relRect.Height - 1);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
2217g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width-1, valBounds.Height-1)); 2355pen = SystemPens.ControlLight; 2358pen = SystemPens.Control; 2382pen = SystemPens.ControlDarkDark; 2405pen = SystemPens.ControlLightLight; 2420pen = SystemPens.ControlDark; 2473g.DrawLine(SystemPens.ControlText, pt1.X, pt1.Y, pt2.X, pt2.Y); 2486g.DrawRectangle(SystemPens.ControlDark, dropRect); 2574g.DrawRectangle(SystemPens.ControlDark, valBounds);
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (5)
171graphics.DrawRectangle(SystemPens.ControlDarkDark, r); 178graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.Right, r.Y); 179graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.X, r.Bottom); 183graphics.DrawLine(SystemPens.ControlDark, r.X + 1, r.Bottom, r.Right, r.Bottom); 184graphics.DrawLine(SystemPens.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
winforms\Managed\System\WinForms\GroupBox.cs (1)
641boxPen = SystemPens.FromSystemColor(boxColor);
winforms\Managed\System\WinForms\ListBox.cs (1)
2285g.DrawRectangle(SystemPens.Window, rect);
winforms\Managed\System\WinForms\ListView.cs (1)
6234g.DrawRectangle(SystemPens.Window, rect);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3186g.DrawRectangle(SystemPens.Window, rect);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2057p = SystemPens.FromSystemColor(penColor); 2151g.DrawRectangle(SystemPens.WindowText, rectPaint);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (2)
468g.DrawLine(SystemPens.ControlDark, tableBounds.Right, tableBounds.Y, tableBounds.Right, tableBounds.Bottom); 469g.DrawLine(SystemPens.ControlDark, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
winforms\Managed\System\WinForms\TextBox.cs (1)
854g.DrawRectangle(SystemPens.Window, rect);
winforms\Managed\System\WinForms\ToolStrip.cs (6)
3941g.DrawLines(SystemPens.ControlText, 3946g.DrawLines(SystemPens.ControlText, 3951g.DrawLines(SystemPens.ControlText, 3963g.DrawLines(SystemPens.ControlText, 3968g.DrawLines(SystemPens.ControlText, 3973g.DrawLines(SystemPens.ControlText,
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (13)
95 e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1)); 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); 151 g.DrawRectangle(SystemPens.ButtonHighlight, dropDownRect); 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); 304 g.DrawRectangle(SystemPens.ButtonShadow, bounds); 310 Pen foreColorPen = SystemPens.ButtonShadow; 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 (6)
181g.DrawLine(SystemPens.ControlText, 186g.DrawLine(SystemPens.ButtonHighlight, 193g.DrawLine(SystemPens.ControlText, 198g.DrawLine(SystemPens.ButtonHighlight, 898e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0); 931g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (14)
84pen = SystemPens.FromSystemColor(color); 241e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1); 242e.Graphics.DrawLine(SystemPens.InactiveBorder, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2); 245e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1); 246e.Graphics.DrawLine(SystemPens.ButtonShadow, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2); 614Pen foreColorPen = SystemPens.ControlDark; 624Pen leftPen = (rightToLeft) ? SystemPens.ButtonHighlight : foreColorPen; 625Pen rightPen = (rightToLeft) ? foreColorPen : SystemPens.ButtonHighlight; 649g.DrawLine(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.Right, startY); 664 topPen = (state == ToolBarState.Hot) ? SystemPens.ButtonHighlight : SystemPens.ButtonShadow; 665 bottomPen = (state == ToolBarState.Hot)? SystemPens.ButtonShadow : SystemPens.ButtonHighlight; 680e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0);
winforms\Managed\System\WinForms\TreeView.cs (1)
3140g.DrawRectangle(SystemPens.Window, rect);
System.Workflow.ComponentModel (34)
AuthoringOM\Design\ActivityDesigner.cs (1)
3083graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds);
AuthoringOM\Design\DesignerWidgets.cs (21)
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); 1619e.Graphics.DrawLine(SystemPens.ControlLightLight, 0, 0, 0, this.splitter.Height); 1620e.Graphics.DrawLine(SystemPens.ControlLightLight, 0, 0, SplitterSize - 1, 0); 1622e.Graphics.DrawLine(SystemPens.ControlDark, SplitterSize - 2, 0, SplitterSize - 2, this.splitter.Height - 1); 1623e.Graphics.DrawLine(SystemPens.ControlDark, SplitterSize - 2, this.splitter.Height - 1, 0, this.splitter.Height - 1); 1625e.Graphics.DrawLine(SystemPens.ControlText, SplitterSize - 1, 0, SplitterSize - 1, this.splitter.Height); 1629e.Graphics.DrawLine(SystemPens.ControlLightLight, 0, 1, this.splitter.Width, 1); 1630e.Graphics.DrawLine(SystemPens.ControlLightLight, 0, 1, 0, SplitterSize - 1); 1632e.Graphics.DrawLine(SystemPens.ControlDark, 0, SplitterSize - 2, this.splitter.Width, SplitterSize - 2); 1633e.Graphics.DrawLine(SystemPens.ControlDark, this.splitter.Width - 1, SplitterSize - 2, this.splitter.Width - 1, 1); 1635e.Graphics.DrawLine(SystemPens.ControlText, 0, SplitterSize - 1, this.splitter.Width, SplitterSize - 1); 1900e.Graphics.DrawRectangle(SystemPens.Highlight, tabItemRectangle); 1909e.Graphics.DrawRectangle(SystemPens.ControlDarkDark, tabItemRectangle); 3428graphics.DrawRectangle(SystemPens.ControlDark, canvasRect); 3430graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom); 3431graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top); 3432graphics.DrawLine(SystemPens.ControlLight, canvasRect.Right, canvasRect.Top, canvasRect.Right, canvasRect.Bottom); 3433graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Bottom, canvasRect.Right, canvasRect.Bottom); 3435graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom); 3436graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
545e.Graphics.DrawRectangle(SystemPens.ControlDark, 0, 0, this.themePanel.ClientSize.Width - 1, this.themePanel.ClientSize.Height - 2); 551e.Graphics.DrawLine(SystemPens.ControlDark, top, bottom);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (8)
510paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom); 511paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1); 515paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom); 516paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1); 519paintArgs.Graphics.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom); 520paintArgs.Graphics.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Bottom); 521paintArgs.Graphics.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Top - 1); 522paintArgs.Graphics.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
84graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.Top, activatedBounds.Width - 1, activatedBounds.Height - 1); 92graphics.DrawPath(SystemPens.ControlText, dropDownIndicator);