35 references to SmoothingMode
System.Drawing (1)
System.Drawing.cs (1)
53
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
SmoothingMode
))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
447
public System.Drawing.Drawing2D.
SmoothingMode
SmoothingMode { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (32)
mono\System.Drawing\GraphicsTests.cs (13)
116
Assert.Equal(
SmoothingMode
.None, g.SmoothingMode);
132
g.SmoothingMode =
SmoothingMode
.AntiAlias;
143
Assert.Equal(
SmoothingMode
.AntiAlias, g.SmoothingMode);
296
g.SmoothingMode =
SmoothingMode
.AntiAlias;
309
g.SmoothingMode =
SmoothingMode
.None;
321
Assert.Equal(
SmoothingMode
.AntiAlias, g.SmoothingMode);
335
Assert.Equal(
SmoothingMode
.None, g.SmoothingMode);
916
AssertEquals(message + ".SmoothingMode",
SmoothingMode
.None, g.SmoothingMode);
932
AssertEquals(message + ".SmoothingMode",
SmoothingMode
.AntiAlias, g.SmoothingMode);
966
g.SmoothingMode =
SmoothingMode
.AntiAlias;
999
g.SmoothingMode =
SmoothingMode
.AntiAlias;
1033
g.SmoothingMode =
SmoothingMode
.AntiAlias;
1114
g.SmoothingMode =
SmoothingMode
.AntiAlias;
System\Drawing\GraphicsTests.cs (19)
899
[InlineData(
SmoothingMode
.AntiAlias,
SmoothingMode
.AntiAlias)]
900
[InlineData(
SmoothingMode
.Default,
SmoothingMode
.None)]
901
[InlineData(
SmoothingMode
.HighQuality,
SmoothingMode
.AntiAlias)]
902
[InlineData(
SmoothingMode
.HighSpeed,
SmoothingMode
.None)]
903
[InlineData(
SmoothingMode
.None,
SmoothingMode
.None)]
904
public void SmoothingMode_SetValid_GetReturnsExpected(
SmoothingMode
smoothingMode,
SmoothingMode
expectedSmoothingMode)
913
[InlineData(
SmoothingMode
.Invalid - 1)]
914
[InlineData(
SmoothingMode
.AntiAlias + 1)]
915
public void SmoothingMode_SetInvalid_ThrowsInvalidEnumArgumentException(
SmoothingMode
smoothingMode)
927
AssertExtensions.Throws<ArgumentException>(null, () => graphics.SmoothingMode =
SmoothingMode
.Invalid);
939
Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode =
SmoothingMode
.AntiAlias);
955
AssertExtensions.Throws<ArgumentException>(null, () => graphics.SmoothingMode =
SmoothingMode
.AntiAlias);
2814
Assert.Equal(
SmoothingMode
.None, graphics.SmoothingMode);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
119
g.SmoothingMode =
SmoothingMode
.AntiAlias;