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