24 references to DashCap
System.Drawing (1)
System.Drawing.cs (1)
28[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.DashCap))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
854public System.Drawing.Drawing2D.DashCap DashCap { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 875public void SetLineCap(System.Drawing.Drawing2D.LineCap startCap, System.Drawing.Drawing2D.LineCap endCap, System.Drawing.Drawing2D.DashCap dashCap) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (21)
System\Drawing\PenTests.cs (19)
468[InlineData(DashCap.Flat)] 469[InlineData(DashCap.Round)] 470[InlineData(DashCap.Triangle)] 471public void DashCap_SetValid_GetReturnsExpected(DashCap dashCap) 480[InlineData(DashCap.Flat - 1)] 481[InlineData(DashCap.Round - 1)] 482[InlineData(DashCap.Triangle + 1)] 483public void DashCap_SetInvalid_ThrowsInvalidEnumArgumentException(DashCap dashCap) 498AssertExtensions.Throws<ArgumentException>(null, () => pen.DashCap = DashCap.Triangle); 1000[InlineData(LineCap.Flat, LineCap.Round, DashCap.Triangle)] 1001[InlineData(LineCap.Flat - 1, LineCap.Flat - 1, DashCap.Flat - 1)] 1002[InlineData((LineCap)int.MaxValue, (LineCap)int.MaxValue, (DashCap)int.MaxValue)] 1003public void SetLineCap_Invoke_Success(LineCap startCap, LineCap endCap, DashCap dashCap) 1008if (Enum.IsDefined(typeof(DashCap), dashCap)) 1010pen.DashCap = DashCap.Round; 1016Assert.Equal(Enum.IsDefined(typeof(DashCap), dashCap) ? dashCap : DashCap.Flat, pen.DashCap); 1026AssertExtensions.Throws<ArgumentException>(null, () => pen.SetLineCap(LineCap.AnchorMask, LineCap.ArrowAnchor, DashCap.Flat)); 1211Assert.Equal(DashCap.Flat, pen.DashCap);
System\Drawing\SystemPensTest.cs (2)
59AssertExtensions.Throws<ArgumentException>(null, () => pen.SetLineCap(LineCap.ArrowAnchor, LineCap.Custom, DashCap.Round)); 67AssertExtensions.Throws<ArgumentException>(null, () => pen.DashCap = DashCap.Flat);