65 references to TextRenderingHint
System.Drawing (1)
System.Drawing.cs (1)
164
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Text.
TextRenderingHint
))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
449
public System.Drawing.Text.
TextRenderingHint
TextRenderingHint { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (33)
mono\System.Drawing\GraphicsTests.cs (13)
117
Assert.Equal(
TextRenderingHint
.SystemDefault, g.TextRenderingHint);
133
g.TextRenderingHint =
TextRenderingHint
.SystemDefault;
144
Assert.Equal(
TextRenderingHint
.SystemDefault, g.TextRenderingHint);
297
g.TextRenderingHint =
TextRenderingHint
.ClearTypeGridFit;
310
g.TextRenderingHint =
TextRenderingHint
.SystemDefault;
322
Assert.Equal(
TextRenderingHint
.ClearTypeGridFit, g.TextRenderingHint);
336
Assert.Equal(
TextRenderingHint
.SystemDefault, g.TextRenderingHint);
918
AssertEquals(message + ".TextRenderingHint",
TextRenderingHint
.SystemDefault, g.TextRenderingHint);
934
AssertEquals(message + ".TextRenderingHint",
TextRenderingHint
.AntiAlias, g.TextRenderingHint);
968
g.TextRenderingHint =
TextRenderingHint
.AntiAlias;
1001
g.TextRenderingHint =
TextRenderingHint
.AntiAlias;
1035
g.TextRenderingHint =
TextRenderingHint
.AntiAlias;
1116
g.TextRenderingHint =
TextRenderingHint
.AntiAlias;
System\Drawing\FontTests.cs (7)
726
[InlineData(
TextRenderingHint
.SystemDefault)]
727
[InlineData(
TextRenderingHint
.AntiAlias)]
728
[InlineData(
TextRenderingHint
.AntiAliasGridFit)]
729
[InlineData(
TextRenderingHint
.SingleBitPerPixel)]
730
[InlineData(
TextRenderingHint
.SingleBitPerPixelGridFit)]
731
[InlineData(
TextRenderingHint
.ClearTypeGridFit)]
732
public void ToLogFont_InvokeGraphics_ReturnsExpected(
TextRenderingHint
textRenderingHint)
System\Drawing\GraphicsTests.cs (13)
1009
[InlineData(
TextRenderingHint
.AntiAlias)]
1010
[InlineData(
TextRenderingHint
.AntiAliasGridFit)]
1011
[InlineData(
TextRenderingHint
.ClearTypeGridFit)]
1012
[InlineData(
TextRenderingHint
.SingleBitPerPixel)]
1013
[InlineData(
TextRenderingHint
.SingleBitPerPixelGridFit)]
1014
[InlineData(
TextRenderingHint
.SystemDefault)]
1015
public void TextRenderingHint_SetValid_GetReturnsExpected(
TextRenderingHint
textRenderingHint)
1024
[InlineData(
TextRenderingHint
.SystemDefault - 1)]
1025
[InlineData(
TextRenderingHint
.ClearTypeGridFit + 1)]
1026
public void TextRenderingHint_SetInvalid_ThrowsInvalidEnumArgumentException(
TextRenderingHint
textRenderingHint)
1042
Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint =
TextRenderingHint
.SingleBitPerPixelGridFit);
1058
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TextRenderingHint =
TextRenderingHint
.SingleBitPerPixelGridFit);
2816
Assert.Equal(
TextRenderingHint
.SystemDefault, graphics.TextRenderingHint);
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
881
textGraphics.TextRenderingHint =
TextRenderingHint
.AntiAlias;
System\Windows\Forms\Rendering\TextRenderer.cs (5)
575
TextRenderingHint
.ClearTypeGridFit => FONT_QUALITY.CLEARTYPE_QUALITY,
576
TextRenderingHint
.AntiAliasGridFit or
TextRenderingHint
.AntiAlias => FONT_QUALITY.ANTIALIASED_QUALITY,
577
TextRenderingHint
.SingleBitPerPixelGridFit => FONT_QUALITY.PROOF_QUALITY,
578
TextRenderingHint
.SingleBitPerPixel => FONT_QUALITY.DRAFT_QUALITY,
System.Windows.Forms.Tests (24)
System\Windows\Forms\TextRendererTests.cs (24)
17
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
33
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColor_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Point pt, Color foreColor)
46
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
67
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorColor_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Point pt, Color foreColor, Color backColor)
80
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
104
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorTextFormatFlags_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Point pt, Color foreColor, TextFormatFlags flags)
117
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
145
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorColorTextFormatFlags_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Point pt, Color foreColor, Color backColor, TextFormatFlags flags)
158
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
177
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColor_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Rectangle bounds, Color foreColor)
190
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
213
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorColor_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, Color backColor)
226
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
253
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorTextFormatFlags_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, TextFormatFlags flags)
266
foreach (
TextRenderingHint
hint in Enum.GetValues(typeof(
TextRenderingHint
)))
297
public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorColorTextFormatFlags_Success(
TextRenderingHint
textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, Color backColor, TextFormatFlags flags)