20 references to PenType
System.Drawing (1)
System.Drawing.cs (1)
49
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
PenType
))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
861
public System.Drawing.Drawing2D.
PenType
PenType { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (18)
System\Drawing\PensTests.cs (1)
163
Assert.Equal(
PenType
.SolidColor, pen.PenType);
System\Drawing\PenTests.cs (16)
13
yield return new object[] { new SolidBrush(Color.Red),
PenType
.SolidColor };
14
yield return new object[] { new HatchBrush(HatchStyle.BackwardDiagonal, Color.Red),
PenType
.HatchFill };
15
yield return new object[] { new LinearGradientBrush(new Point(0, 0), new Point(0, 2), Color.Purple, Color.Plum),
PenType
.LinearGradient };
16
yield return new object[] { new TextureBrush(new Bitmap(1, 1)),
PenType
.TextureFill };
17
yield return new object[] { new PathGradientBrush([new(1, 2), new(2, 3)]),
PenType
.PathGradient };
22
public void Ctor_Brush<T>(T brush,
PenType
penType) where T : Brush
41
yield return new object[] { new SolidBrush(Color.Red), 0,
PenType
.SolidColor };
48
yield return new object[] { new SolidBrush(Color.Red), float.PositiveInfinity,
PenType
.SolidColor };
49
yield return new object[] { new SolidBrush(Color.Red), float.NaN,
PenType
.SolidColor };
50
yield return new object[] { new SolidBrush(Color.Red), float.MaxValue,
PenType
.SolidColor };
55
public void Ctor_Brush_Width<T>(T brush, float width,
PenType
expectedPenType) where T : Brush
95
VerifyPen<SolidBrush>(pen,
PenType
.SolidColor, 1);
110
VerifyPen<SolidBrush>(pen,
PenType
.SolidColor, width);
151
public void Brush_SetValid_GetReturnsExpected<T>(T brush,
PenType
penType) where T : Brush
265
public void Color_Set_GetReturnsExpected(Brush brush,
PenType
penType)
1200
private static void VerifyPen<T>(Pen pen,
PenType
expectedPenType, float expectedWidth) where T : Brush
System\Drawing\SystemPensTest.cs (1)
55
Assert.Equal(
PenType
.SolidColor, pen.PenType);