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