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