10 references to DrawMixedCheckBox
System.Windows.Forms (4)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
274ControlPaint.DrawMixedCheckBox(e.GraphicsInternal, layout.CheckBounds, style);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (3)
61ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state)); 137ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state)); 209ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state));
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
1533ControlPaint.DrawMixedCheckBox(graphics, rectangle, state); 1536ControlPaint.DrawMixedCheckBox(graphics, rectangle, state); 1556Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, new Rectangle(1, 2, 3, 4), state)); 1570Assert.Throws<ArgumentException>(() => ControlPaint.DrawMixedCheckBox(graphics, new Rectangle(0, 0, width, height), state)); 1581Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawMixedCheckBox(graphics, new Rectangle(0, 0, -3, 4), state)); 1592Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawMixedCheckBox(graphics, new Rectangle(0, 0, 3, -4), state));