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)
449public 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)
117Assert.Equal(TextRenderingHint.SystemDefault, g.TextRenderingHint); 133g.TextRenderingHint = TextRenderingHint.SystemDefault; 144Assert.Equal(TextRenderingHint.SystemDefault, g.TextRenderingHint); 297g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; 310g.TextRenderingHint = TextRenderingHint.SystemDefault; 322Assert.Equal(TextRenderingHint.ClearTypeGridFit, g.TextRenderingHint); 336Assert.Equal(TextRenderingHint.SystemDefault, g.TextRenderingHint); 918AssertEquals(message + ".TextRenderingHint", TextRenderingHint.SystemDefault, g.TextRenderingHint); 934AssertEquals(message + ".TextRenderingHint", TextRenderingHint.AntiAlias, g.TextRenderingHint); 968g.TextRenderingHint = TextRenderingHint.AntiAlias; 1001g.TextRenderingHint = TextRenderingHint.AntiAlias; 1035g.TextRenderingHint = TextRenderingHint.AntiAlias; 1116g.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)] 732public 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)] 1015public void TextRenderingHint_SetValid_GetReturnsExpected(TextRenderingHint textRenderingHint) 1024[InlineData(TextRenderingHint.SystemDefault - 1)] 1025[InlineData(TextRenderingHint.ClearTypeGridFit + 1)] 1026public void TextRenderingHint_SetInvalid_ThrowsInvalidEnumArgumentException(TextRenderingHint textRenderingHint) 1042Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit); 1058AssertExtensions.Throws<ArgumentException>(null, () => graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit); 2816Assert.Equal(TextRenderingHint.SystemDefault, graphics.TextRenderingHint);
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
881textGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;
System\Windows\Forms\Rendering\TextRenderer.cs (5)
575TextRenderingHint.ClearTypeGridFit => FONT_QUALITY.CLEARTYPE_QUALITY, 576TextRenderingHint.AntiAliasGridFit or TextRenderingHint.AntiAlias => FONT_QUALITY.ANTIALIASED_QUALITY, 577TextRenderingHint.SingleBitPerPixelGridFit => FONT_QUALITY.PROOF_QUALITY, 578TextRenderingHint.SingleBitPerPixel => FONT_QUALITY.DRAFT_QUALITY,
System.Windows.Forms.Tests (24)
System\Windows\Forms\TextRendererTests.cs (24)
17foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 33public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColor_Success(TextRenderingHint textRenderingHint, string text, Font font, Point pt, Color foreColor) 46foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 67public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorColor_Success(TextRenderingHint textRenderingHint, string text, Font font, Point pt, Color foreColor, Color backColor) 80foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 104public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorTextFormatFlags_Success(TextRenderingHint textRenderingHint, string text, Font font, Point pt, Color foreColor, TextFormatFlags flags) 117foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 145public void TextRenderer_DrawText_InvokeIDeviceContextStringFontPointColorColorTextFormatFlags_Success(TextRenderingHint textRenderingHint, string text, Font font, Point pt, Color foreColor, Color backColor, TextFormatFlags flags) 158foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 177public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColor_Success(TextRenderingHint textRenderingHint, string text, Font font, Rectangle bounds, Color foreColor) 190foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 213public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorColor_Success(TextRenderingHint textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, Color backColor) 226foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 253public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorTextFormatFlags_Success(TextRenderingHint textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, TextFormatFlags flags) 266foreach (TextRenderingHint hint in Enum.GetValues(typeof(TextRenderingHint))) 297public void TextRenderer_DrawText_InvokeIDeviceContextStringFontRectangleColorColorTextFormatFlags_Success(TextRenderingHint textRenderingHint, string text, Font font, Rectangle rectangle, Color foreColor, Color backColor, TextFormatFlags flags)