14 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)
848
public 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)]
120
public void Alignment_SetValid_GetReturnsExpected(
PenAlignment
alignment)
129
[InlineData(
PenAlignment
.Center - 1)]
130
[InlineData(
PenAlignment
.Right + 1)]
131
public void Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(
PenAlignment
alignment)
146
AssertExtensions.Throws<ArgumentException>(null, () => pen.Alignment =
PenAlignment
.Center);
1202
Assert.Equal(
PenAlignment
.Center, pen.Alignment);
System\Drawing\SystemPensTest.cs (1)
61
AssertExtensions.Throws<ArgumentException>(null, () => pen.Alignment =
PenAlignment
.Center);