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)
114
Assert.Equal(
SmoothingMode
.None, g.SmoothingMode);
130
g.SmoothingMode =
SmoothingMode
.AntiAlias;
141
Assert.Equal(
SmoothingMode
.AntiAlias, g.SmoothingMode);
294
g.SmoothingMode =
SmoothingMode
.AntiAlias;
307
g.SmoothingMode =
SmoothingMode
.None;
319
Assert.Equal(
SmoothingMode
.AntiAlias, g.SmoothingMode);
333
Assert.Equal(
SmoothingMode
.None, g.SmoothingMode);
914
AssertEquals(message + ".SmoothingMode",
SmoothingMode
.None, g.SmoothingMode);
930
AssertEquals(message + ".SmoothingMode",
SmoothingMode
.AntiAlias, g.SmoothingMode);
964
g.SmoothingMode =
SmoothingMode
.AntiAlias;
997
g.SmoothingMode =
SmoothingMode
.AntiAlias;
1031
g.SmoothingMode =
SmoothingMode
.AntiAlias;
1112
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)
118
g.SmoothingMode =
SmoothingMode
.AntiAlias;