12 instantiations of MeasureItemEventArgs
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3399
MeasureItemEventArgs mievent =
new
(graphics, i, original);
3610
MeasureItemEventArgs mie =
new
(graphics, itemID, ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1957
MeasureItemEventArgs mie =
new
(graphics, i, ItemHeight);
2382
MeasureItemEventArgs mie =
new
(graphics, (int)mis->itemID, ItemHeight);
System.Windows.Forms.Tests (8)
CheckedListBoxTests.cs (1)
814
MeasureItemEventArgs eventArgs =
new
(Graphics.FromImage(image), 1);
System\Windows\Forms\ComboBoxTests.cs (2)
336
control.TriggerMeasureItem(new
MeasureItemEventArgs
(Graphics.FromHwnd(IntPtr.Zero), 0, 0));
341
control.TriggerMeasureItem(new
MeasureItemEventArgs
(Graphics.FromHwnd(IntPtr.Zero), 0, 0));
System\Windows\Forms\ListBoxTests.cs (1)
5642
yield return new object[] { new
MeasureItemEventArgs
(graphics, 0, 0) };
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
25
MeasureItemEventArgs e =
new
(graphics, index, itemHeight);
46
MeasureItemEventArgs e =
new
(graphics, index);
61
MeasureItemEventArgs e =
new
(graphics, 1)
76
MeasureItemEventArgs e =
new
(graphics, 1)
26 references to MeasureItemEventArgs
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
518
private void _listBoxSummary_MeasureItem(object sender,
MeasureItemEventArgs
e)
System.Windows.Forms (8)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2508
protected virtual void OnMeasureItem(
MeasureItemEventArgs
e)
3399
MeasureItemEventArgs
mievent = new(graphics, i, original);
3610
MeasureItemEventArgs
mie = new(graphics, itemID, ItemHeight);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
805
protected override void OnMeasureItem(
MeasureItemEventArgs
e)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1819
protected virtual void OnMeasureItem(
MeasureItemEventArgs
e)
1957
MeasureItemEventArgs
mie = new(graphics, i, ItemHeight);
2382
MeasureItemEventArgs
mie = new(graphics, (int)mis->itemID, ItemHeight);
System\Windows\Forms\Layout\MeasureItemEventHandler.cs (1)
6
public delegate void MeasureItemEventHandler(object? sender,
MeasureItemEventArgs
e);
System.Windows.Forms.Tests (15)
CheckedListBoxTests.cs (2)
814
MeasureItemEventArgs
eventArgs = new(Graphics.FromImage(image), 1);
877
public new void OnMeasureItem(
MeasureItemEventArgs
e) => base.OnMeasureItem(e);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
482
protected override void OnMeasureItem(
MeasureItemEventArgs
e)
System\Windows\Forms\ComboBoxTests.cs (5)
322
public void TriggerMeasureItem(
MeasureItemEventArgs
e) =>
2587
MeasureItemEventArgs
e = ownerDrawComboBox.MeasureItemEventArgs[i];
2761
public List<
MeasureItemEventArgs
> MeasureItemEventArgs { get; } = [];
2763
protected override void OnMeasureItem(
MeasureItemEventArgs
e)
2916
public new void OnMeasureItem(
MeasureItemEventArgs
e) => base.OnMeasureItem(e);
System\Windows\Forms\ListBoxTests.cs (3)
5647
public void ListBox_OnMeasureItem_Invoke_CallsMeasureItem(
MeasureItemEventArgs
eventArgs)
5651
void handler(object sender,
MeasureItemEventArgs
e)
6488
public new void OnMeasureItem(
MeasureItemEventArgs
e) => base.OnMeasureItem(e);
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
25
MeasureItemEventArgs
e = new(graphics, index, itemHeight);
46
MeasureItemEventArgs
e = new(graphics, index);
61
MeasureItemEventArgs
e = new(graphics, 1)
76
MeasureItemEventArgs
e = new(graphics, 1)
WinFormsControlsTest (2)
ComboBoxesWithScrollBars.cs (1)
125
private void comboBox_MeasureItem(object sender,
MeasureItemEventArgs
e) => e.ItemHeight = 15 + (e.Index % 5) * 5;
ListBoxes.cs (1)
52
private void ListBox_MeasureItem(object sender,
MeasureItemEventArgs
e)