18 instantiations of HatchBrush
System.Drawing.Common.Tests (13)
System\Drawing\Drawing2D\HatchBrushTests.cs (10)
18
using HatchBrush brush =
new
(hatchStyle, foreColor);
37
using HatchBrush brush =
new
(hatchStyle, foreColor, backColor);
52
AssertExtensions.Throws<ArgumentException>("hatchstyle", null, () => new
HatchBrush
(hatchStyle, Color.Empty));
53
AssertExtensions.Throws<ArgumentException>("hatchstyle", null, () => new
HatchBrush
(hatchStyle, Color.Empty, Color.Empty));
59
using HatchBrush brush =
new
(HatchStyle.DarkDownwardDiagonal, Color.Magenta, Color.Peru);
82
HatchBrush brush =
new
(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
91
HatchBrush brush =
new
(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
100
HatchBrush brush =
new
(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
109
HatchBrush brush =
new
(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
118
HatchBrush brush =
new
(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
System\Drawing\GraphicsTests.cs (1)
862
using HatchBrush brush =
new
(HatchStyle.Cross, red);
System\Drawing\PenTests.cs (2)
14
yield return new object[] { new
HatchBrush
(HatchStyle.BackwardDiagonal, Color.Red), PenType.HatchFill };
245
using HatchBrush brush =
new
(HatchStyle.BackwardDiagonal, Color.Red);
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ComponentTray.cs (2)
1443
selectionBorderBrush = new
HatchBrush
(HatchStyle.Percent50, SystemColors.HighlightText, Color.Transparent);
1447
selectionBorderBrush = new
HatchBrush
(HatchStyle.Percent50, SystemColors.ControlDarkDark, Color.Transparent);
System\Windows\Forms\Design\DesignerUtils.cs (3)
25
new
(HatchStyle.Percent50, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark);
170
s_selectionBorderBrush = new
HatchBrush
(HatchStyle.Percent50, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark);
236
FrameStyle.Dashed => new
HatchBrush
(HatchStyle.Percent50, color, Color.Transparent),
15 references to HatchBrush
System.Drawing (1)
System.Drawing.cs (1)
36
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
HatchBrush
))]
System.Drawing.Common.Tests (12)
System\Drawing\Drawing2D\HatchBrushTests.cs (10)
18
using
HatchBrush
brush = new(hatchStyle, foreColor);
37
using
HatchBrush
brush = new(hatchStyle, foreColor, backColor);
59
using
HatchBrush
brush = new(HatchStyle.DarkDownwardDiagonal, Color.Magenta, Color.Peru);
60
HatchBrush
clone = Assert.IsType<
HatchBrush
>(brush.Clone());
82
HatchBrush
brush = new(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
91
HatchBrush
brush = new(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
100
HatchBrush
brush = new(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
109
HatchBrush
brush = new(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
118
HatchBrush
brush = new(HatchStyle.DarkHorizontal, Color.PeachPuff, Color.Purple);
System\Drawing\GraphicsTests.cs (1)
862
using
HatchBrush
brush = new(HatchStyle.Cross, red);
System\Drawing\PenTests.cs (1)
245
using
HatchBrush
brush = new(HatchStyle.BackwardDiagonal, Color.Red);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ComponentTray.cs (1)
1440
HatchBrush
selectionBorderBrush;
System\Windows\Forms\Design\DesignerUtils.cs (1)
24
private static
HatchBrush
s_selectionBorderBrush =