23 references to Pen
System.Drawing.Common.Tests (13)
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
432using (Pen p = new(Color.BlueViolet, 2))
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
186using (Pen p = new(Color.Red, 2))
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1870using (Pen p = new(Color.Red, 2))
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
351using (Pen p = new(Color.Red, 2))
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
572using (Pen p = new(Color.BlueViolet, 2))
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
243using (Pen p = new(Color.BlueViolet, 2))
mono\System.Drawing\GraphicsTests.cs (3)
1218using Pen pen = new(Color.Blue, width); 1381using Pen pen = new(Color.Blue, width); 1527using Pen pen = new(Color.Blue, width);
System\Drawing\Drawing2D\GraphicsPathTests.cs (3)
1726using Pen pen = new(Color.Aqua, 0); 2248using Pen pen = new(Color.Red, 3.0f); 2275using Pen pen = new(Color.Red, 3.0f);
System\Drawing\PenTests.cs (1)
109using Pen pen = new(Color.Red, width);
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
8116using Pen pen = new(Color.Red, width: 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
515using Pen pen = new(SystemColors.ControlDark, 1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (2)
49Pen focusPen1 = new(SystemColors.ControlText, penWidth) 54Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
468Pen focusPen1 = new(SystemColors.ControlText, penWidth) 473Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1668using Pen pen = new(SystemColors.WindowFrame, 1);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2278using (Pen pen = new(Color.Red, penThickness))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
77=> width == 1 ? GetPenScope(color) : new PenCache.Scope(new Pen(color, width));
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
95Pen pen = new(SystemColors.ControlDarkDark, 1);