219 instantiations of Pen
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
52new System.Drawing.Pen(System.Drawing.Brushes.DeepSkyBlue, 1),
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
80new Pen(new SolidBrush(System.Drawing.SystemColors.ControlDark)),
System.Drawing.Common.Tests (178)
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 (5)
834using Pen pen = new(Color.Red); 849using Pen pen = new(Color.Red); 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 (7)
1661using Pen pen = new(Color.Blue); 1674using Pen pen = new(Color.Blue); 1693using Pen pen = new(Color.Blue); 1704using Pen pen = new(Color.Blue); 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\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\Imaging\ImageAttributesTests.cs (3)
173using Pen pen = new(brush); 204using Pen pen = new(brush); 300using Pen pen = new(brush);
System\Drawing\PenTests.cs (89)
25using (Pen pen = new(brush)) 58using (Pen pen = new(brush, width)) 68using Pen pen = new(brush); 77AssertExtensions.Throws<ArgumentNullException>("brush", () => new Pen(null)); 78AssertExtensions.Throws<ArgumentNullException>("brush", () => new Pen(null, 0)); 87AssertExtensions.Throws<ArgumentException>(null, () => new Pen(brush)); 88AssertExtensions.Throws<ArgumentException>(null, () => new Pen(brush, 10)); 94using Pen pen = new(Color.Red); 109using Pen pen = new(Color.Red, width); 123using Pen pen = new(brush); 134using Pen pen = new(brush); 142Pen pen = new(brush); 153using Pen pen = new(Color.Red); 162using Pen pen = new(Color.Red); 175using Pen pen = new(brush); 183using Pen pen = new(brush); 192Pen pen = new(brush); 202yield return new object[] { new Pen(brush) }; 228Pen pen = new(brush); 238using Pen pen = new(brush); 246using Pen pen = new(brush); 254using Pen pen = new(brush); 269using (Pen pen = new(brush)) 282Pen pen = new(Color.Red); 297Pen pen = new(brush); 311using Pen pen = new(brush); 324using Pen pen = new(brush); 332using Pen pen = new(brush); 348using Pen pen = new(brush); 356Pen pen = new(brush); 367using Pen pen = new(brush); 384using Pen pen = new(brush); 392using Pen pen = new(brush); 408Pen pen = new(brush); 419using Pen pen = new(brush); 436using Pen pen = new(brush); 444using Pen pen = new(brush); 460Pen pen = new(brush); 474using Pen pen = new(brush); 486using Pen pen = new(brush); 494Pen pen = new(brush); 511using Pen pen = new(brush); 520Pen pen = new(brush); 535using Pen pen = new(brush); 549using Pen pen = new(brush); 557using Pen pen = new(brush); 569using Pen pen = new(brush); 577Pen pen = new(brush); 594using Pen pen = new(brush); 612using Pen pen = new(brush); 626using Pen pen = new(brush); 634Pen pen = new(brush); 661using Pen pen = new(brush); 680using Pen pen = new(brush); 688Pen pen = new(brush); 703using Pen pen = new(brush); 714using Pen pen = new(brush); 722Pen pen = new(brush); 739using Pen pen = new(brush); 748Pen pen = new(brush); 770using Pen pen = new(brush); 796using Pen pen = new(brush); 805using Pen pen = new(brush); 815using Pen pen = new(brush); 834using Pen pen = new(brush); 848Pen pen = new(brush); 859using Pen pen = new(brush); 875Pen pen = new(brush); 899using (Pen pen = new(brush)) 923using Pen pen = new(brush); 932Pen pen = new(brush); 959using (Pen pen = new(brush)) 983using Pen pen = new(brush); 992Pen pen = new(brush); 1006using Pen pen = new(brush); 1023Pen pen = new(brush); 1034using Pen pen = new(brush); 1044using Pen pen = new(brush); 1052Pen pen = new(brush); 1063using Pen pen = new(brush); 1078using Pen pen = new(brush); 1086using Pen pen = new(brush); 1095using Pen pen = new(brush); 1107Pen pen = new(brush); 1134using (Pen pen = new(brush)) 1158using Pen pen = new(brush); 1167Pen pen = new(brush); 1184using Pen pen = new(brush); 1193Pen pen = new(brush);
System.Windows.Forms (10)
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 (3)
292using Pen p = new(SystemColors.ButtonShadow) 468Pen focusPen1 = new(SystemColors.ControlText, penWidth) 473Pen focusPen2 = new(SystemColors.Control, penWidth)
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\Rendering\ControlPaint.cs (1)
1668using Pen pen = new(SystemColors.WindowFrame, 1);
System.Windows.Forms.Design (22)
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\ControlDesigner.cs (1)
2278using (Pen pen = new(Color.Red, penThickness))
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\ToolStripItemBehavior.cs (1)
926using Pen p = new(new SolidBrush(Color.Black));
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 (6)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
77=> width == 1 ? GetPenScope(color) : new PenCache.Scope(new Pen(color, width));
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 (4)
101: new Pen(color); 105? new Pen(Color.FromArgb(color.ToArgb())) { DashStyle = dashStyle } 106: new Pen(color) { DashStyle = dashStyle }; 113=> new(brush, width);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
95Pen pen = new(SystemColors.ControlDarkDark, 1);
490 references to Pen
System.Drawing (1)
System.Drawing.cs (1)
103[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Pen))]
System.Drawing.Common (229)
Special\NotSupported.cs (229)
462public void DrawArc(System.Drawing.Pen pen, System.Drawing.Rectangle rect, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 463public void DrawArc(System.Drawing.Pen pen, System.Drawing.RectangleF rect, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 464public void DrawArc(System.Drawing.Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 465public void DrawArc(System.Drawing.Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 466public void DrawBezier(System.Drawing.Pen pen, System.Drawing.Point pt1, System.Drawing.Point pt2, System.Drawing.Point pt3, System.Drawing.Point pt4) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 467public void DrawBezier(System.Drawing.Pen pen, System.Drawing.PointF pt1, System.Drawing.PointF pt2, System.Drawing.PointF pt3, System.Drawing.PointF pt4) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 468public void DrawBezier(System.Drawing.Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 469public void DrawBeziers(System.Drawing.Pen pen, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 470public void DrawBeziers(System.Drawing.Pen pen, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 471public void DrawClosedCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 472public void DrawClosedCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points, float tension, System.Drawing.Drawing2D.FillMode fillmode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 473public void DrawClosedCurve(System.Drawing.Pen pen, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 474public void DrawClosedCurve(System.Drawing.Pen pen, System.Drawing.Point[] points, float tension, System.Drawing.Drawing2D.FillMode fillmode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 475public void DrawCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 476public void DrawCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points, int offset, int numberOfSegments) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 477public void DrawCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points, int offset, int numberOfSegments, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 478public void DrawCurve(System.Drawing.Pen pen, System.Drawing.PointF[] points, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 479public void DrawCurve(System.Drawing.Pen pen, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 480public void DrawCurve(System.Drawing.Pen pen, System.Drawing.Point[] points, int offset, int numberOfSegments, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 481public void DrawCurve(System.Drawing.Pen pen, System.Drawing.Point[] points, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 482public void DrawEllipse(System.Drawing.Pen pen, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 483public void DrawEllipse(System.Drawing.Pen pen, System.Drawing.RectangleF rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 484public void DrawEllipse(System.Drawing.Pen pen, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 485public void DrawEllipse(System.Drawing.Pen pen, float x, float y, float width, float height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 524public void DrawLine(System.Drawing.Pen pen, System.Drawing.Point pt1, System.Drawing.Point pt2) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 525public void DrawLine(System.Drawing.Pen pen, System.Drawing.PointF pt1, System.Drawing.PointF pt2) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 526public void DrawLine(System.Drawing.Pen pen, int x1, int y1, int x2, int y2) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 527public void DrawLine(System.Drawing.Pen pen, float x1, float y1, float x2, float y2) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 528public void DrawLines(System.Drawing.Pen pen, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 529public void DrawLines(System.Drawing.Pen pen, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 530public void DrawPath(System.Drawing.Pen pen, System.Drawing.Drawing2D.GraphicsPath path) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 531public void DrawPie(System.Drawing.Pen pen, System.Drawing.Rectangle rect, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 532public void DrawPie(System.Drawing.Pen pen, System.Drawing.RectangleF rect, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 533public void DrawPie(System.Drawing.Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 534public void DrawPie(System.Drawing.Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 535public void DrawPolygon(System.Drawing.Pen pen, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 536public void DrawPolygon(System.Drawing.Pen pen, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 537public void DrawRectangle(System.Drawing.Pen pen, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 538public void DrawRectangle(System.Drawing.Pen pen, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 539public void DrawRectangle(System.Drawing.Pen pen, float x, float y, float width, float height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 540public void DrawRectangles(System.Drawing.Pen pen, System.Drawing.RectangleF[] rects) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 541public void DrawRectangles(System.Drawing.Pen pen, System.Drawing.Rectangle[] rects) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 882public static System.Drawing.Pen AliceBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 883public static System.Drawing.Pen AntiqueWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 884public static System.Drawing.Pen Aqua { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 885public static System.Drawing.Pen Aquamarine { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 886public static System.Drawing.Pen Azure { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 887public static System.Drawing.Pen Beige { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 888public static System.Drawing.Pen Bisque { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 889public static System.Drawing.Pen Black { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 890public static System.Drawing.Pen BlanchedAlmond { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 891public static System.Drawing.Pen Blue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 892public static System.Drawing.Pen BlueViolet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 893public static System.Drawing.Pen Brown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 894public static System.Drawing.Pen BurlyWood { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 895public static System.Drawing.Pen CadetBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 896public static System.Drawing.Pen Chartreuse { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 897public static System.Drawing.Pen Chocolate { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 898public static System.Drawing.Pen Coral { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 899public static System.Drawing.Pen CornflowerBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 900public static System.Drawing.Pen Cornsilk { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 901public static System.Drawing.Pen Crimson { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 902public static System.Drawing.Pen Cyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 903public static System.Drawing.Pen DarkBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 904public static System.Drawing.Pen DarkCyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 905public static System.Drawing.Pen DarkGoldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 906public static System.Drawing.Pen DarkGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 907public static System.Drawing.Pen DarkGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 908public static System.Drawing.Pen DarkKhaki { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 909public static System.Drawing.Pen DarkMagenta { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 910public static System.Drawing.Pen DarkOliveGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 911public static System.Drawing.Pen DarkOrange { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 912public static System.Drawing.Pen DarkOrchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 913public static System.Drawing.Pen DarkRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 914public static System.Drawing.Pen DarkSalmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 915public static System.Drawing.Pen DarkSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 916public static System.Drawing.Pen DarkSlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 917public static System.Drawing.Pen DarkSlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 918public static System.Drawing.Pen DarkTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 919public static System.Drawing.Pen DarkViolet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 920public static System.Drawing.Pen DeepPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 921public static System.Drawing.Pen DeepSkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 922public static System.Drawing.Pen DimGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 923public static System.Drawing.Pen DodgerBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 924public static System.Drawing.Pen Firebrick { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 925public static System.Drawing.Pen FloralWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 926public static System.Drawing.Pen ForestGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 927public static System.Drawing.Pen Fuchsia { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 928public static System.Drawing.Pen Gainsboro { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 929public static System.Drawing.Pen GhostWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 930public static System.Drawing.Pen Gold { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 931public static System.Drawing.Pen Goldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 932public static System.Drawing.Pen Gray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 933public static System.Drawing.Pen Green { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 934public static System.Drawing.Pen GreenYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 935public static System.Drawing.Pen Honeydew { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 936public static System.Drawing.Pen HotPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 937public static System.Drawing.Pen IndianRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 938public static System.Drawing.Pen Indigo { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 939public static System.Drawing.Pen Ivory { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 940public static System.Drawing.Pen Khaki { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 941public static System.Drawing.Pen Lavender { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 942public static System.Drawing.Pen LavenderBlush { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 943public static System.Drawing.Pen LawnGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 944public static System.Drawing.Pen LemonChiffon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 945public static System.Drawing.Pen LightBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 946public static System.Drawing.Pen LightCoral { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 947public static System.Drawing.Pen LightCyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 948public static System.Drawing.Pen LightGoldenrodYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 949public static System.Drawing.Pen LightGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 950public static System.Drawing.Pen LightGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 951public static System.Drawing.Pen LightPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 952public static System.Drawing.Pen LightSalmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 953public static System.Drawing.Pen LightSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 954public static System.Drawing.Pen LightSkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 955public static System.Drawing.Pen LightSlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 956public static System.Drawing.Pen LightSteelBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 957public static System.Drawing.Pen LightYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 958public static System.Drawing.Pen Lime { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 959public static System.Drawing.Pen LimeGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 960public static System.Drawing.Pen Linen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 961public static System.Drawing.Pen Magenta { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 962public static System.Drawing.Pen Maroon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 963public static System.Drawing.Pen MediumAquamarine { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 964public static System.Drawing.Pen MediumBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 965public static System.Drawing.Pen MediumOrchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 966public static System.Drawing.Pen MediumPurple { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 967public static System.Drawing.Pen MediumSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 968public static System.Drawing.Pen MediumSlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 969public static System.Drawing.Pen MediumSpringGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 970public static System.Drawing.Pen MediumTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 971public static System.Drawing.Pen MediumVioletRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 972public static System.Drawing.Pen MidnightBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 973public static System.Drawing.Pen MintCream { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 974public static System.Drawing.Pen MistyRose { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 975public static System.Drawing.Pen Moccasin { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 976public static System.Drawing.Pen NavajoWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 977public static System.Drawing.Pen Navy { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 978public static System.Drawing.Pen OldLace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 979public static System.Drawing.Pen Olive { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 980public static System.Drawing.Pen OliveDrab { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 981public static System.Drawing.Pen Orange { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 982public static System.Drawing.Pen OrangeRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 983public static System.Drawing.Pen Orchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 984public static System.Drawing.Pen PaleGoldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 985public static System.Drawing.Pen PaleGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 986public static System.Drawing.Pen PaleTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 987public static System.Drawing.Pen PaleVioletRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 988public static System.Drawing.Pen PapayaWhip { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 989public static System.Drawing.Pen PeachPuff { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 990public static System.Drawing.Pen Peru { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 991public static System.Drawing.Pen Pink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 992public static System.Drawing.Pen Plum { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 993public static System.Drawing.Pen PowderBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 994public static System.Drawing.Pen Purple { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 995public static System.Drawing.Pen Red { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 996public static System.Drawing.Pen RosyBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 997public static System.Drawing.Pen RoyalBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 998public static System.Drawing.Pen SaddleBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 999public static System.Drawing.Pen Salmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1000public static System.Drawing.Pen SandyBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1001public static System.Drawing.Pen SeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1002public static System.Drawing.Pen SeaShell { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1003public static System.Drawing.Pen Sienna { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1004public static System.Drawing.Pen Silver { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1005public static System.Drawing.Pen SkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1006public static System.Drawing.Pen SlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1007public static System.Drawing.Pen SlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1008public static System.Drawing.Pen Snow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1009public static System.Drawing.Pen SpringGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1010public static System.Drawing.Pen SteelBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1011public static System.Drawing.Pen Tan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1012public static System.Drawing.Pen Teal { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1013public static System.Drawing.Pen Thistle { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1014public static System.Drawing.Pen Tomato { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1015public static System.Drawing.Pen Transparent { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1016public static System.Drawing.Pen Turquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1017public static System.Drawing.Pen Violet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1018public static System.Drawing.Pen Wheat { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1019public static System.Drawing.Pen White { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1020public static System.Drawing.Pen WhiteSmoke { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1021public static System.Drawing.Pen Yellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1022public static System.Drawing.Pen YellowGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1294public static System.Drawing.Pen ActiveBorder { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1295public static System.Drawing.Pen ActiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1296public static System.Drawing.Pen ActiveCaptionText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1297public static System.Drawing.Pen AppWorkspace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1298public static System.Drawing.Pen ButtonFace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1299public static System.Drawing.Pen ButtonHighlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1300public static System.Drawing.Pen ButtonShadow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1301public static System.Drawing.Pen Control { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1302public static System.Drawing.Pen ControlDark { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1303public static System.Drawing.Pen ControlDarkDark { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1304public static System.Drawing.Pen ControlLight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1305public static System.Drawing.Pen ControlLightLight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1306public static System.Drawing.Pen ControlText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1307public static System.Drawing.Pen Desktop { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1308public static System.Drawing.Pen GradientActiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1309public static System.Drawing.Pen GradientInactiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1310public static System.Drawing.Pen GrayText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1311public static System.Drawing.Pen Highlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1312public static System.Drawing.Pen HighlightText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1313public static System.Drawing.Pen HotTrack { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1314public static System.Drawing.Pen InactiveBorder { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1315public static System.Drawing.Pen InactiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1316public static System.Drawing.Pen InactiveCaptionText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1317public static System.Drawing.Pen Info { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1318public static System.Drawing.Pen InfoText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1319public static System.Drawing.Pen Menu { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1320public static System.Drawing.Pen MenuBar { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1321public static System.Drawing.Pen MenuHighlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1322public static System.Drawing.Pen MenuText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1323public static System.Drawing.Pen ScrollBar { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1324public static System.Drawing.Pen Window { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1325public static System.Drawing.Pen WindowFrame { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1326public static System.Drawing.Pen WindowText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1327public static System.Drawing.Pen FromSystemColor(System.Drawing.Color c) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1566public System.Drawing.RectangleF GetBounds(System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Pen? pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1568public bool IsOutlineVisible(System.Drawing.Point point, System.Drawing.Pen pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1569public bool IsOutlineVisible(System.Drawing.Point pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1570public bool IsOutlineVisible(System.Drawing.PointF point, System.Drawing.Pen pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1571public bool IsOutlineVisible(System.Drawing.PointF pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1572public bool IsOutlineVisible(int x, int y, System.Drawing.Pen pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1573public bool IsOutlineVisible(int x, int y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1574public bool IsOutlineVisible(float x, float y, System.Drawing.Pen pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1575public bool IsOutlineVisible(float x, float y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1593public void Widen(System.Drawing.Pen pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1594public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.Matrix? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1595public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.Matrix? matrix, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (192)
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 (5)
834using Pen pen = new(Color.Red); 849using Pen pen = new(Color.Red); 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 (7)
1661using Pen pen = new(Color.Blue); 1674using Pen pen = new(Color.Blue); 1693using Pen pen = new(Color.Blue); 1704using Pen pen = new(Color.Blue); 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\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\Imaging\ImageAttributesTests.cs (3)
173using Pen pen = new(brush); 204using Pen pen = new(brush); 300using Pen pen = new(brush);
System\Drawing\PensTests.cs (3)
155public static object[] Pen(Func<Pen> getPen, Color expectedColor) => [getPen, expectedColor]; 159public void Pens_Get_ReturnsExpected(Func<Pen> getPen, Color expectedColor) 161Pen pen = getPen();
System\Drawing\PenTests.cs (97)
25using (Pen pen = new(brush)) 58using (Pen pen = new(brush, width)) 68using Pen pen = new(brush); 94using Pen pen = new(Color.Red); 109using Pen pen = new(Color.Red, width); 123using Pen pen = new(brush); 134using Pen pen = new(brush); 142Pen pen = new(brush); 153using Pen pen = new(Color.Red); 162using Pen pen = new(Color.Red); 175using Pen pen = new(brush); 183using Pen pen = new(brush); 192Pen pen = new(brush); 207public void Clone_Invoke_ReturnsExpected(Pen pen) 211Pen clone = Assert.IsType<Pen>(pen.Clone()); 228Pen pen = new(brush); 238using Pen pen = new(brush); 246using Pen pen = new(brush); 254using Pen pen = new(brush); 258private static void ValidateInitialPenColorState(Pen pen) 269using (Pen pen = new(brush)) 282Pen pen = new(Color.Red); 297Pen pen = new(brush); 311using Pen pen = new(brush); 324using Pen pen = new(brush); 332using Pen pen = new(brush); 348using Pen pen = new(brush); 356Pen pen = new(brush); 367using Pen pen = new(brush); 384using Pen pen = new(brush); 392using Pen pen = new(brush); 408Pen pen = new(brush); 419using Pen pen = new(brush); 436using Pen pen = new(brush); 444using Pen pen = new(brush); 460Pen pen = new(brush); 474using Pen pen = new(brush); 486using Pen pen = new(brush); 494Pen pen = new(brush); 511using Pen pen = new(brush); 520Pen pen = new(brush); 535using Pen pen = new(brush); 549using Pen pen = new(brush); 557using Pen pen = new(brush); 569using Pen pen = new(brush); 577Pen pen = new(brush); 594using Pen pen = new(brush); 612using Pen pen = new(brush); 626using Pen pen = new(brush); 634Pen pen = new(brush); 661using Pen pen = new(brush); 680using Pen pen = new(brush); 688Pen pen = new(brush); 703using Pen pen = new(brush); 714using Pen pen = new(brush); 722Pen pen = new(brush); 739using Pen pen = new(brush); 748Pen pen = new(brush); 770using Pen pen = new(brush); 777Pen clone = (Pen)pen.Clone(); 796using Pen pen = new(brush); 805using Pen pen = new(brush); 815using Pen pen = new(brush); 834using Pen pen = new(brush); 848Pen pen = new(brush); 859using Pen pen = new(brush); 875Pen pen = new(brush); 899using (Pen pen = new(brush)) 907Pen clone = (Pen)pen.Clone(); 923using Pen pen = new(brush); 932Pen pen = new(brush); 959using (Pen pen = new(brush)) 967Pen clone = (Pen)pen.Clone(); 983using Pen pen = new(brush); 992Pen pen = new(brush); 1006using Pen pen = new(brush); 1023Pen pen = new(brush); 1034using Pen pen = new(brush); 1044using Pen pen = new(brush); 1052Pen pen = new(brush); 1063using Pen pen = new(brush); 1078using Pen pen = new(brush); 1086using Pen pen = new(brush); 1095using Pen pen = new(brush); 1107Pen pen = new(brush); 1134using (Pen pen = new(brush)) 1142Pen clone = (Pen)pen.Clone(); 1158using Pen pen = new(brush); 1167Pen pen = new(brush); 1184using Pen pen = new(brush); 1193Pen pen = new(brush); 1200private static void VerifyPen<T>(Pen pen, PenType expectedPenType, float expectedWidth) where T : Brush
System\Drawing\SystemPensTest.cs (3)
47public static object[] Pen(Func<Pen> getPen, Color expectedColor) => [getPen, expectedColor]; 51public void SystemPens_Get_ReturnsExpected(Func<Pen> getPen, Color expectedColor) 53Pen pen = getPen();
System.Windows.Forms (28)
System\Windows\Forms\Control.cs (1)
8116using Pen pen = new(Color.Red, width: 2);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
88Pen innerPen = comboBox.Enabled ? borderPen : SystemPens.Control;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2090Pen pen = SystemInformation.HighContrast ? SystemPens.ControlLight : SystemPens.Control;
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 (4)
292using Pen p = new(SystemColors.ButtonShadow) 347Pen foreColorPen = SystemPens.ButtonShadow; 468Pen focusPen1 = new(SystemColors.ControlText, penWidth) 473Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
57using Pen p = new(SystemColors.ButtonShadow)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
1025using Pen p = new(ColorTable.StatusStripBorder); 1506Pen leftPen = (rightToLeft) ? highlightColorPen : foreColorPen; 1507Pen rightPen = (rightToLeft) ? foreColorPen : highlightColorPen;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
714Pen leftPen = (rightToLeft) ? SystemPens.ButtonHighlight : foreColorPen; 715Pen rightPen = (rightToLeft) ? foreColorPen : SystemPens.ButtonHighlight; 748Pen leftPen, topPen, rightPen, bottomPen;
System\Windows\Forms\Rendering\ControlPaint.cs (11)
22private static Pen? t_focusPen; // pen used to draw a focus rectangle 25private static Pen? t_focusPenInvert; // pen used to draw a focus rectangle 33private static Pen? s_grabPenPrimary; // pen used for primary grab handles 34private static Pen? s_grabPenSecondary; // pen used for secondary grab handles 1086Pen pen = SystemPens.ControlLight; 1278Pen pen = Pens.Black; 1389Pen pen = SystemPens.ControlDark; 1487Pen pen = primary 1668using Pen pen = new(SystemColors.WindowFrame, 1); 1687Pen pen = primary ? Pens.White : Pens.Black; 2129private static Pen GetFocusPen(Color baseColor, bool odds, bool highContrast, bool blackAndWhite)
System.Windows.Forms.Design (28)
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)
27private readonly Pen _edgePen = SystemPens.Highlight; 29private readonly Pen _baselinePen = new(Color.Fuchsia); 819Pen currentPen;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2278using (Pen pen = new(Color.Red, penThickness))
System\Windows\Forms\Design\DesignerUtils.cs (1)
190Pen pen = SystemPens.ControlDarkDark;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
439var pen = SystemPens.ControlText;
System\Windows\Forms\Design\PanelDesigner.cs (3)
36Pen pen = BorderPen; 66protected Pen BorderPen 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\TableLayoutPanelDesigner.cs (1)
855using Pen pen = BorderPen;
System\Windows\Forms\Design\TabOrder.cs (2)
30private readonly Pen _highlightPen; 264Pen pen;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
926using Pen p = new(new SolidBrush(Color.Black));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
40private Pen BorderPen 50Pen pen = new(penColor) 239Pen pen = BorderPen;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
1872Pen selectborderPen = new(_toolStripBorderColor); 1888Pen borderPen = new(_defaultBorderColor); 1977using (Pen p = new(_toolStripBorderColor)) 2020Pen selectborderPen;
System.Windows.Forms.Primitives (11)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (3)
31Pen? pen = color.IsSystemColor 62/// Returns a cached <see cref="Pen"/>. Use in a using and assign to var. 105private static Pen? PenFromKnownColor(KnownColor color) => color switch
System\Windows\Forms\GdiPlus\PenCache.cs (3)
8internal sealed class PenCache : RefCountedCache<Pen, Color, Color> 17private readonly Pen _pen; 19public override Pen Object => _pen;
System\Windows\Forms\RefCountedCache.cs (1)
12/// The target object the cache represents. If you're caching <see cref="Drawing.Pen"/> that would be the
System\Windows\Forms\SystemDrawingExtensions.cs (4)
54internal static void DrawLines(this Graphics graphics, Pen pen, ReadOnlySpan<int> lines) 91/// Creates a <see cref="Pen"/>. If <paramref name="color"/> is a system color, makes a static copy of the 94internal static Pen CreateStaticPen(this Color color, DashStyle dashStyle) 112internal static Pen CreateStaticPen(this Brush brush, float width = 1.0f)
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
95Pen pen = new(SystemColors.ControlDarkDark, 1);