144 references to SystemPens
System.Drawing (1)
System.Drawing.cs (1)
158
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SystemPens
))]
System.Drawing.Common.Tests (34)
System\Drawing\SystemPensTest.cs (34)
12
yield return Pen(() =>
SystemPens
.ActiveBorder, SystemColors.ActiveBorder);
13
yield return Pen(() =>
SystemPens
.ActiveCaption, SystemColors.ActiveCaption);
14
yield return Pen(() =>
SystemPens
.ActiveCaptionText, SystemColors.ActiveCaptionText);
15
yield return Pen(() =>
SystemPens
.AppWorkspace, SystemColors.AppWorkspace);
16
yield return Pen(() =>
SystemPens
.ButtonFace, SystemColors.ButtonFace);
17
yield return Pen(() =>
SystemPens
.ButtonHighlight, SystemColors.ButtonHighlight);
18
yield return Pen(() =>
SystemPens
.ButtonShadow, SystemColors.ButtonShadow);
19
yield return Pen(() =>
SystemPens
.Control, SystemColors.Control);
20
yield return Pen(() =>
SystemPens
.ControlDark, SystemColors.ControlDark);
21
yield return Pen(() =>
SystemPens
.ControlDarkDark, SystemColors.ControlDarkDark);
22
yield return Pen(() =>
SystemPens
.ControlLight, SystemColors.ControlLight);
23
yield return Pen(() =>
SystemPens
.ControlLightLight, SystemColors.ControlLightLight);
24
yield return Pen(() =>
SystemPens
.ControlText, SystemColors.ControlText);
25
yield return Pen(() =>
SystemPens
.Desktop, SystemColors.Desktop);
26
yield return Pen(() =>
SystemPens
.GradientActiveCaption, SystemColors.GradientActiveCaption);
27
yield return Pen(() =>
SystemPens
.GradientInactiveCaption, SystemColors.GradientInactiveCaption);
28
yield return Pen(() =>
SystemPens
.GrayText, SystemColors.GrayText);
29
yield return Pen(() =>
SystemPens
.Highlight, SystemColors.Highlight);
30
yield return Pen(() =>
SystemPens
.HighlightText, SystemColors.HighlightText);
31
yield return Pen(() =>
SystemPens
.HotTrack, SystemColors.HotTrack);
32
yield return Pen(() =>
SystemPens
.InactiveBorder, SystemColors.InactiveBorder);
33
yield return Pen(() =>
SystemPens
.InactiveCaption, SystemColors.InactiveCaption);
34
yield return Pen(() =>
SystemPens
.InactiveCaptionText, SystemColors.InactiveCaptionText);
35
yield return Pen(() =>
SystemPens
.Info, SystemColors.Info);
36
yield return Pen(() =>
SystemPens
.InfoText, SystemColors.InfoText);
37
yield return Pen(() =>
SystemPens
.Menu, SystemColors.Menu);
38
yield return Pen(() =>
SystemPens
.MenuBar, SystemColors.MenuBar);
39
yield return Pen(() =>
SystemPens
.MenuHighlight, SystemColors.MenuHighlight);
40
yield return Pen(() =>
SystemPens
.MenuText, SystemColors.MenuText);
41
yield return Pen(() =>
SystemPens
.ScrollBar, SystemColors.ScrollBar);
42
yield return Pen(() =>
SystemPens
.Window, SystemColors.Window);
43
yield return Pen(() =>
SystemPens
.WindowFrame, SystemColors.WindowFrame);
44
yield return Pen(() =>
SystemPens
.WindowText, SystemColors.WindowText);
86
AssertExtensions.Throws<ArgumentException>(null, () =>
SystemPens
.FromSystemColor(Color.Blue));
System.Windows.Forms (91)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
88
Pen innerPen = comboBox.Enabled ? borderPen :
SystemPens
.Control;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (9)
1983
g.DrawRectangle(
SystemPens
.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width - 1, valBounds.Height - 1));
2090
Pen pen = SystemInformation.HighContrast ?
SystemPens
.ControlLight :
SystemPens
.Control;
2110
pen =
SystemPens
.ControlDarkDark;
2131
pen =
SystemPens
.ControlLightLight;
2141
pen =
SystemPens
.ControlDark;
2189
g.DrawLine(
SystemPens
.ControlText, pt1.X, pt1.Y, pt2.X, pt2.Y);
2202
g.DrawRectangle(
SystemPens
.ControlDark, dropRect);
2292
g.DrawRectangle(
SystemPens
.ControlDark, valBounds);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2331
g.DrawRectangle(
SystemPens
.Window, rect);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (5)
107
Graphics.DrawRectangle(
SystemPens
.ControlDarkDark, r);
113
Graphics.DrawLine(
SystemPens
.ControlLightLight, r.X, r.Y, r.Right, r.Y);
114
Graphics.DrawLine(
SystemPens
.ControlLightLight, r.X, r.Y, r.X, r.Bottom);
117
Graphics.DrawLine(
SystemPens
.ControlDark, r.X + 1, r.Bottom, r.Right, r.Bottom);
118
Graphics.DrawLine(
SystemPens
.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6903
g.DrawRectangle(
SystemPens
.Window, rect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1858
g.DrawRectangle(
SystemPens
.WindowText, rectPaint);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2903
g.DrawRectangle(
SystemPens
.Window, rect);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
830
g.DrawRectangle(
SystemPens
.Window, rect);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
3786
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
3793
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
3800
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
3813
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
3820
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
3827
g.DrawLines(
SystemPens
.ControlText, (ReadOnlySpan<Point>)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (11)
100
e.Graphics.DrawRectangle(
SystemPens
.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1));
144
g.DrawRectangle(
SystemPens
.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
149
g.DrawRectangle(
SystemPens
.HighlightText, dropDownRect);
181
e.Graphics.DrawRectangle(
SystemPens
.ButtonHighlight, 0, 0, e.Item.Width - 1, e.Item.Height - 1);
190
g.DrawRectangle(
SystemPens
.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
263
g.DrawRectangle(
SystemPens
.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
277
g.DrawRectangle(
SystemPens
.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
341
g.DrawRectangle(
SystemPens
.ButtonShadow, bounds);
347
Pen foreColorPen =
SystemPens
.ButtonShadow;
420
g.DrawRectangle(
SystemPens
.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
452
g.DrawRectangle(
SystemPens
.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
712
g.DrawRectangle(
SystemPens
.Control, 0, 0, image.Width - 1, image.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
194
g.DrawLine(
SystemPens
.ControlText,
199
g.DrawLine(
SystemPens
.ButtonHighlight,
207
g.DrawLine(
SystemPens
.ControlText,
212
g.DrawLine(
SystemPens
.ButtonHighlight,
1075
g.DrawRectangle(
SystemPens
.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (13)
251
e.Graphics.DrawRectangle(
SystemPens
.ControlDark, bounds);
262
e.Graphics.DrawLine(
SystemPens
.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1);
263
e.Graphics.DrawLine(
SystemPens
.InactiveBorder, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2);
267
e.Graphics.DrawLine(
SystemPens
.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1);
268
e.Graphics.DrawLine(
SystemPens
.ButtonShadow, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2);
714
Pen leftPen = (rightToLeft) ?
SystemPens
.ButtonHighlight : foreColorPen;
715
Pen rightPen = (rightToLeft) ? foreColorPen :
SystemPens
.ButtonHighlight;
739
g.DrawLine(
SystemPens
.ButtonHighlight, bounds.Left, startY, bounds.Right, startY);
749
topPen = (state == ToolBarState.Hot) ?
SystemPens
.ButtonHighlight :
SystemPens
.ButtonShadow;
750
bottomPen = (state == ToolBarState.Hot) ?
SystemPens
.ButtonShadow :
SystemPens
.ButtonHighlight;
766
e.Graphics.DrawLine(
SystemPens
.ButtonHighlight, 0, 0, e.ToolStrip.Width, 0);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3155
g.DrawRectangle(
SystemPens
.Window, rect);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (4)
443
SystemPens
.ControlDark,
450
SystemPens
.ControlDark,
459
SystemPens
.Window,
465
SystemPens
.Window,
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1144
e.Graphics.DrawRectangle(
SystemPens
.ControlDark, rect);
System\Windows\Forms\Rendering\ControlPaint.cs (29)
1086
Pen pen =
SystemPens
.ControlLight;
1389
Pen pen =
SystemPens
.ControlDark;
2338
g.DrawLine(
SystemPens
.ControlDark, x, y, right - 1, y);
2339
g.DrawLine(
SystemPens
.ControlDark, x, y, x, bottom - 1);
2340
g.DrawLine(
SystemPens
.Window, right - 1, y, right - 1, bottom - 1);
2341
g.DrawLine(
SystemPens
.Window, x, bottom - 1, right - 1, bottom - 1);
2347
g.DrawLine(
SystemPens
.Window, x, y, right - 1, y);
2348
g.DrawLine(
SystemPens
.Window, x, y, x, bottom - 1);
2349
g.DrawLine(
SystemPens
.ControlDark, right - 1, y, right - 1, bottom - 1);
2350
g.DrawLine(
SystemPens
.ControlDark, x, bottom - 1, right - 1, bottom - 1);
2364
g.DrawRectangle(
SystemPens
.ControlDark, bound);
2368
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2369
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2370
g.DrawLine(
SystemPens
.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2371
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2375
g.DrawRectangle(
SystemPens
.Control, bound);
2379
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2380
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2382
g.DrawLine(
SystemPens
.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2383
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2387
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2388
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2389
g.DrawLine(
SystemPens
.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2390
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2395
g.DrawRectangle(
SystemPens
.Control, bound);
2399
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2400
g.DrawLine(
SystemPens
.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2401
g.DrawLine(
SystemPens
.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2402
g.DrawLine(
SystemPens
.Window, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
System.Windows.Forms.Design (17)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
599
g.DrawRectangle(
SystemPens
.ControlText, baseVar.X, baseVar.Y, baseVar.Width - 1, baseVar.Height - 1);
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
207
g.DrawLine(
SystemPens
.ButtonHighlight, bounds.Left + PushButtonWidth, 4, bounds.Left + PushButtonWidth, bounds.Bottom - 4);
208
g.DrawLine(
SystemPens
.ButtonHighlight, bounds.Left + PushButtonWidth + 1, 4, bounds.Left + PushButtonWidth + 1, bounds.Bottom - 4);
214
g.DrawLine(
SystemPens
.ButtonHighlight, bounds.Right - PushButtonWidth, 4, bounds.Right - PushButtonWidth, bounds.Bottom - 4);
215
g.DrawLine(
SystemPens
.ButtonHighlight, bounds.Right - PushButtonWidth - 1, 4, bounds.Right - PushButtonWidth - 1, bounds.Bottom - 4);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
297
swatchGraphics.DrawRectangle(
SystemPens
.ControlDark, new Rectangle(0, 0, width - 1, height - 1));
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
292
g.DrawRectangle(
SystemPens
.ControlDark, editRect);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
276
graphics.DrawRectangle(
SystemPens
.WindowText, new Rectangle(die.Bounds.X + 2, die.Bounds.Y + 2, 22 - 1, die.Bounds.Height - 4 - 1));
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
70
e.Graphics.DrawRectangle(
SystemPens
.WindowText, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32 - 1, e.Bounds.Height - 4 - 1));
System\Drawing\Design\ImageEditor.cs (1)
179
e.Graphics.DrawRectangle(
SystemPens
.WindowFrame, r);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
271
e.Graphics.DrawRectangle(
SystemPens
.WindowFrame, rc.X, rc.Y, rc.Width - 1, rc.Height - 1);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
27
private readonly Pen _edgePen =
SystemPens
.Highlight;
System\Windows\Forms\Design\DesignerUtils.cs (2)
190
Pen pen =
SystemPens
.ControlDarkDark;
193
pen =
SystemPens
.ControlLight;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
439
var pen =
SystemPens
.ControlText;
443
pen =
SystemPens
.ControlLight;
System\Windows\Forms\Design\TabOrder.cs (1)
281
pen =
SystemPens
.HighlightText;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
32
?
SystemPens
.FromSystemColor(color)