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