17 instantiations of DrawItemEventArgs
System.Windows.Forms.Tests (17)
CheckedListBoxTests.cs (5)
421DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 443DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 464DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), -1, DrawItemState.Default); 475DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Default); 488DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), 2, DrawItemState.Default);
System\Windows\Forms\ComboBoxTests.cs (4)
730control.TestRaiseOnDrawItem(new DrawItemEventArgs(graphics, control.Font, default, 0, DrawItemState.Default)); 747control.TestRaiseOnDrawItem(new DrawItemEventArgs(Graphics.FromImage(bitmap), control.Font, default, 0, DrawItemState.Default)); 776control.TestRaiseOnDrawItem(new DrawItemEventArgs(graphics, control.Font, default, 0, DrawItemState.Default)); 782control.TestRaiseOnDrawItem(new DrawItemEventArgs(graphics, control.Font, default, 0, DrawItemState.Default));
System\Windows\Forms\DrawItemEventArgsTests.cs (6)
26DrawItemEventArgs e = new(graphics, font, rect, index, state); 52DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 65Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None)); 66Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None, Color.Red, Color.Blue)); 91DrawItemEventArgs e = new(graphics, SystemFonts.DefaultFont, bounds, -1, state); 101DrawItemEventArgs e = new(graphics, SystemFonts.DefaultFont, bounds, -1, state);
System\Windows\Forms\ListBoxTests.cs (1)
5520yield return new object[] { new DrawItemEventArgs(graphics, null, new Rectangle(1, 2, 3, 4), 0, DrawItemState.Checked) };
System\Windows\Forms\TabControlTests.cs (1)
4222yield return new object[] { new DrawItemEventArgs(graphics, null, new Rectangle(1, 2, 3, 4), 0, DrawItemState.Checked) };
36 references to DrawItemEventArgs
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
587private void _listBoxSummary_DrawItem(object sender, DrawItemEventArgs e)
System.Windows.Forms (9)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2401protected virtual void OnDrawItem(DrawItemEventArgs e) 3587using DrawItemEventArgs e = new(
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
474protected override void OnDrawItem(DrawItemEventArgs e)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1732protected virtual void OnDrawItem(DrawItemEventArgs e) 2360using DrawItemEventArgs e = new(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2281private void OnListDrawItem(object? sender, DrawItemEventArgs e)
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1318protected virtual void OnDrawItem(DrawItemEventArgs e) 1934using DrawItemEventArgs e = new(
System\Windows\Forms\Rendering\DrawItemEventHandler.cs (1)
6public delegate void DrawItemEventHandler(object? sender, DrawItemEventArgs e);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
553private void ListBox_drawItem(object? sender, DrawItemEventArgs e)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
251private void OnListDrawItem(object? sender, DrawItemEventArgs die)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
57protected override void OnDrawItem(DrawItemEventArgs e)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
947private void selectedColumns_DrawItem(object? sender, DrawItemEventArgs e)
System.Windows.Forms.Tests (20)
CheckedListBoxTests.cs (6)
421DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 443DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 464DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), -1, DrawItemState.Default); 475DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Default); 488DrawItemEventArgs e = new(graphics, null, new Rectangle(1, 2, 3, 4), 2, DrawItemState.Default); 865public new void OnDrawItem(DrawItemEventArgs e) => base.OnDrawItem(e);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
488protected override void OnDrawItem(DrawItemEventArgs e)
System\Windows\Forms\ComboBoxTests.cs (3)
709private void RaiseOnDrawItem(DrawItemEventArgs e) => base.OnDrawItem(e); 714public void TestRaiseOnDrawItem(DrawItemEventArgs e) => RaiseOnDrawItem(e); 2900public new void OnDrawItem(DrawItemEventArgs e) => base.OnDrawItem(e);
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
26DrawItemEventArgs e = new(graphics, font, rect, index, state); 52DrawItemEventArgs e = new(graphics, font, rect, index, state, foreColor, backColor); 91DrawItemEventArgs e = new(graphics, SystemFonts.DefaultFont, bounds, -1, state); 101DrawItemEventArgs e = new(graphics, SystemFonts.DefaultFont, bounds, -1, state);
System\Windows\Forms\ListBoxTests.cs (3)
5525public void ListBox_OnDrawItem_Invoke_CallsDrawItem(DrawItemEventArgs eventArgs) 5529void handler(object sender, DrawItemEventArgs e) 6478public new void OnDrawItem(DrawItemEventArgs e) => base.OnDrawItem(e);
System\Windows\Forms\TabControlTests.cs (3)
4227public void TabControl_OnDrawItem_Invoke_CallsDrawItem(DrawItemEventArgs eventArgs) 4231void handler(object sender, DrawItemEventArgs e) 5797public new void OnDrawItem(DrawItemEventArgs e) => base.OnDrawItem(e);
WinFormsControlsTest (2)
ComboBoxesWithScrollBars.cs (1)
127private void comboBox_DrawItem(object sender, DrawItemEventArgs e)
ListBoxes.cs (1)
31private void ListBox_DrawItem(object sender, DrawItemEventArgs e)