8 references to DrawStringDisabled
System.Windows.Forms (3)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
494
ControlPaint.
DrawStringDisabled
(graphics, Text, Font, backColor, textRectangle, format);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1290
ControlPaint.
DrawStringDisabled
(e.GraphicsInternal, Text, Font, color, face, stringFormat);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1125
ControlPaint.
DrawStringDisabled
(g, Text, Font, DisabledColor, ClientRectWithPadding, stringFormat);
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlPaintTests.cs (5)
1919
ControlPaint.
DrawStringDisabled
(graphics, s, font, color, layoutRectangle, format);
1922
ControlPaint.
DrawStringDisabled
(graphics, s, font, color, layoutRectangle, format);
1931
ControlPaint.
DrawStringDisabled
(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null);
1934
ControlPaint.
DrawStringDisabled
(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null);
1941
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawStringDisabled
(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat()));