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