21 references to PenAlignment
System.Drawing (1)
System.Drawing.cs (1)
48[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.PenAlignment))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
848public System.Drawing.Drawing2D.PenAlignment Alignment { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (12)
System\Drawing\PenTests.cs (11)
115[InlineData(PenAlignment.Center)] 116[InlineData(PenAlignment.Inset)] 117[InlineData(PenAlignment.Left)] 118[InlineData(PenAlignment.Outset)] 119[InlineData(PenAlignment.Right)] 120public void Alignment_SetValid_GetReturnsExpected(PenAlignment alignment) 129[InlineData(PenAlignment.Center - 1)] 130[InlineData(PenAlignment.Right + 1)] 131public void Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(PenAlignment alignment) 146AssertExtensions.Throws<ArgumentException>(null, () => pen.Alignment = PenAlignment.Center); 1202Assert.Equal(PenAlignment.Center, pen.Alignment);
System\Drawing\SystemPensTest.cs (1)
61AssertExtensions.Throws<ArgumentException>(null, () => pen.Alignment = PenAlignment.Center);
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
105using var pen = new Pen(color) { Alignment = PenAlignment.Inset };
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (1)
23Alignment = PenAlignment.Inset
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (5)
172using (var topLeftOuterPen = new Pen(topLeftOuter) { Alignment = PenAlignment.Inset }) 173using (var bottomRightOuterPen = new Pen(bottomRightOuter) { Alignment = PenAlignment.Inset }) 189using (var topLeftInnerPen = new Pen(topLeftInner) { Alignment = PenAlignment.Inset }) 190using (var bottomRightInnerPen = new Pen(bottomRightInner) { Alignment = PenAlignment.Inset }) 213using var defaultInnerBorderPen = new Pen(innerBorderColor) { Alignment = PenAlignment.Inset };