27 references to HatchStyle
System.Drawing (1)
System.Drawing.cs (1)
37
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
HatchStyle
))]
System.Drawing.Common (3)
Special\NotSupported.cs (3)
1623
public HatchBrush(System.Drawing.Drawing2D.
HatchStyle
hatchstyle, System.Drawing.Color foreColor) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1624
public HatchBrush(System.Drawing.Drawing2D.
HatchStyle
hatchstyle, System.Drawing.Color foreColor, System.Drawing.Color backColor) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1627
public System.Drawing.Drawing2D.
HatchStyle
HatchStyle { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (18)
System\Drawing\Drawing2D\HatchBrushTests.cs (15)
10
yield return new object[] {
HatchStyle
.Horizontal, new Color() };
11
yield return new object[] {
HatchStyle
.SolidDiamond, Color.PapayaWhip };
16
public void Ctor_HatchStyle_ForeColor(
HatchStyle
hatchStyle, Color foreColor)
29
yield return new object[] {
HatchStyle
.Horizontal, new Color(), new Color() };
30
yield return new object[] {
HatchStyle
.SolidDiamond, Color.PapayaWhip, Color.Plum };
35
public void Ctor_HatchStyle_ForeColor_BackColor(
HatchStyle
hatchStyle, Color foreColor, Color backColor)
48
[InlineData(
HatchStyle
.Horizontal -1 )]
49
[InlineData(
HatchStyle
.SolidDiamond + 1)]
50
public void Ctor_InvalidHatchStyle_ThrowsArgumentException(
HatchStyle
hatchStyle)
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),