16 references to DrawPath
System.Drawing.Common.Tests (9)
mono\System.Drawing\GraphicsTests.cs (3)
2856
Assert.Throws<ArgumentNullException>(() => g.
DrawPath
(null, path));
2864
Assert.Throws<ArgumentNullException>(() => g.
DrawPath
(Pens.Black, null));
2886
g.
DrawPath
(Pens.SteelBlue, path);
System\Drawing\GraphicsTests.cs (6)
2386
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawPath
(null, graphicsPath));
2398
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawPath
(pen, graphicsPath));
2407
AssertExtensions.Throws<ArgumentNullException>("path", () => graphics.
DrawPath
(pen, null));
2419
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawPath
(pen, graphicsPath));
2432
Assert.Throws<InvalidOperationException>(() => graphics.
DrawPath
(pen, graphicsPath));
2449
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawPath
(pen, graphicsPath));
System.Windows.Forms (6)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
106
g.
DrawPath
(pen, path);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (1)
26
graphics.
DrawPath
(borderPen, path);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
87
graphics.
DrawPath
(focusPen, focusPath);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (3)
69
graphics.
DrawPath
(focusPen, focusPath);
180
graphics.
DrawPath
(topLeftPen, GetTopLeftSegmentPath(borderRect, CornerRadius));
184
graphics.
DrawPath
(bottomRightPen, GetBottomRightSegmentPath(borderRect, CornerRadius));
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
119
g.
DrawPath
(pen, path);