105 references to Pen
System.Drawing.Common.Tests (78)
mono\System.Drawing\GraphicsTests.cs (2)
834
using Pen pen =
new
(Color.Red);
849
using Pen pen =
new
(Color.Red);
System\Drawing\Drawing2D\GraphicsPathTests.cs (4)
1661
using Pen pen =
new
(Color.Blue);
1674
using Pen pen =
new
(Color.Blue);
1693
using Pen pen =
new
(Color.Blue);
1704
using Pen pen =
new
(Color.Blue);
System\Drawing\Graphics_DrawBezierTests.cs (11)
12
using Pen pen =
new
(Color.White);
26
using Pen pen =
new
(Color.Red);
45
using Pen pen =
new
(Color.Red);
75
Pen pen =
new
(Color.Red);
88
using Pen pen =
new
(Color.Red);
106
using Pen pen =
new
(Color.Red);
130
Pen pen =
new
(Color.Red);
142
using Pen pen =
new
(Color.Red);
152
using Pen pen =
new
(Color.Red);
162
using Pen pen =
new
(Color.Red);
179
using Pen pen =
new
(Color.Red);
System\Drawing\Graphics_DrawLineTests.cs (10)
12
using Pen pen =
new
(Color.White);
27
using Pen pen =
new
(Color.White);
54
Pen pen =
new
(Color.Red);
68
using Pen pen =
new
(Color.Red);
87
using Pen pen =
new
(Color.Red);
111
Pen pen =
new
(Color.Red);
123
using Pen pen =
new
(Color.Red);
135
using Pen pen =
new
(Color.Red);
145
using Pen pen =
new
(Color.Red);
162
using Pen pen =
new
(Color.Red);
System\Drawing\GraphicsTests.Core.cs (3)
85
Pen pen =
new
(Color.Red);
98
using Pen pen =
new
(Color.Red);
115
using Pen pen =
new
(Color.Red);
System\Drawing\GraphicsTests.cs (44)
1971
Pen pen =
new
(Color.Red);
1985
using Pen pen =
new
(Color.Red);
1997
using Pen pen =
new
(Color.Red);
2009
using Pen pen =
new
(Color.Red);
2028
using Pen pen =
new
(Color.Red);
2053
Pen pen =
new
(Color.Red);
2066
using Pen pen =
new
(Color.Red);
2084
using Pen pen =
new
(Color.Red);
2107
Pen pen =
new
(Color.Red);
2119
using Pen pen =
new
(Color.Red);
2129
using Pen pen =
new
(Color.Red);
2139
using Pen pen =
new
(Color.Red);
2156
using Pen pen =
new
(Color.Red);
2180
Pen pen =
new
(Color.Red);
2194
using Pen pen =
new
(Color.Red);
2213
using Pen pen =
new
(Color.Red);
2239
Pen pen =
new
(Color.Red);
2253
using Pen pen =
new
(Color.Red);
2265
using Pen pen =
new
(Color.Red);
2277
using Pen pen =
new
(Color.Red);
2296
using Pen pen =
new
(Color.Red);
2320
Pen pen =
new
(Color.Red);
2332
using Pen pen =
new
(Color.Red);
2344
using Pen pen =
new
(Color.Red);
2354
using Pen pen =
new
(Color.Red);
2371
using Pen pen =
new
(Color.Red);
2394
Pen pen =
new
(Color.Red);
2405
using Pen pen =
new
(Color.Red);
2414
using Pen pen =
new
(Color.Red);
2426
using Pen pen =
new
(Color.Red);
2443
using Pen pen =
new
(Color.Red);
2470
Pen pen =
new
(Color.Red);
2487
using Pen pen =
new
(Color.Red);
2504
using Pen pen =
new
(Color.Red);
2524
using Pen pen =
new
(Color.Red);
2535
using Pen pen =
new
(Color.Red);
2557
using Pen pen =
new
(Color.Red);
2586
Pen pen =
new
(Color.Red);
2600
using Pen pen =
new
(Color.Red);
2615
using Pen pen =
new
(Color.Red);
2627
using Pen pen =
new
(Color.Red);
2646
using Pen pen =
new
(Color.Red);
2756
using Pen pen =
new
(Color.Red);
2772
using Pen pen =
new
(Color.Red);
System\Drawing\PenTests.cs (4)
94
using Pen pen =
new
(Color.Red);
153
using Pen pen =
new
(Color.Red);
162
using Pen pen =
new
(Color.Red);
282
Pen pen =
new
(Color.Red);
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
292
using Pen p =
new
(SystemColors.ButtonShadow)
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
57
using Pen p =
new
(SystemColors.ButtonShadow)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
1025
using Pen p =
new
(ColorTable.StatusStripBorder);
System.Windows.Forms.Design (20)
System\ComponentModel\Design\ByteViewer.cs (1)
151
using Pen pen =
new
(SystemColors.ControlDark);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
486
using (Pen borderPen =
new
(BorderColor))
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
105
using Pen p =
new
(ActionPanel.BorderColor);
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
28
using Pen p =
new
(ActionPanel.SeparatorColor);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
29
private readonly Pen _baselinePen =
new
(Color.Fuchsia);
169
_edgePen = new
Pen
(snaplinesColor);
176
_baselinePen = new
Pen
(snaplinesTextBaselineColor);
System\Windows\Forms\Design\DesignerUtils.cs (1)
123
g.DrawRectangle(new
Pen
(SystemColors.ControlDarkDark), 0, 0, s_boxImageSize - 1, s_boxImageSize - 1);
System\Windows\Forms\Design\PanelDesigner.cs (1)
76
Pen pen =
new
(penColor)
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
48
Pen pen =
new
(penColor)
System\Windows\Forms\Design\SplitterDesigner.cs (1)
33
using Pen pen =
new
(penColor);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
150
using Pen pen =
new
(penColor)
168
using Pen pen =
new
(control.BackColor)
System\Windows\Forms\Design\TabOrder.cs (1)
58
_highlightPen = new
Pen
(SystemColors.Highlight);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
50
Pen pen =
new
(penColor)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
1872
Pen selectborderPen =
new
(_toolStripBorderColor);
1888
Pen borderPen =
new
(_defaultBorderColor);
1977
using (Pen p =
new
(_toolStripBorderColor))
2024
selectborderPen = new
Pen
(_selectedBorderColor);
2029
selectborderPen = new
Pen
(_defaultBorderColor);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\GdiPlus\PenCache.cs (1)
18
public PenCacheEntry(Color color, bool cached) : base(color, cached) => _pen = new
Pen
(color);
System\Windows\Forms\SystemDrawingExtensions.cs (3)
101
: new
Pen
(color);
105
? new
Pen
(Color.FromArgb(color.ToArgb())) { DashStyle = dashStyle }
106
: new
Pen
(color) { DashStyle = dashStyle };