1 override of ItemHeight
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
146public override int ItemHeight
20 writes to ItemHeight
Accessibility_Core_App (2)
CommonControl1.Designer.cs (1)
575this.listBox1.ItemHeight = 32;
DataBindingExample.Designer.cs (1)
263this.listBox1.ItemHeight = 15;
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
325_listBox.ItemHeight = RowHeight; 5130DropDownListBox.ItemHeight = RowHeight + 2;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
190_listBox.ItemHeight = Font.Height + SystemInformation.BorderSize.Width * 2;
System\Drawing\Design\ColorEditor.ColorUI.cs (4)
95_lbSystem.ItemHeight = Font.Height + 2; 96_lbCommon.ItemHeight = Font.Height + 2; 263lb.ItemHeight = lb.Font.Height; 268lb.ItemHeight = lb.Font.Height;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
23ItemHeight = Math.Max(4 + Cursors.Default.Size.Height, Font.Height);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
812_selectedColumns.ItemHeight = Font.Height + OWNERDRAWVERTICALBUFFER;
System.Windows.Forms.Tests (8)
System\Windows\Forms\ListBoxTests.cs (8)
1724ItemHeight = value 1731control.ItemHeight = value; 1770control.ItemHeight = value; 1779control.ItemHeight = value; 1797ItemHeight = 25 1810Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemHeight = value); 1821control.ItemHeight = 15; 1837control.ItemHeight = 15;
WinFormsControlsTest (1)
ScrollableControls.Designer.cs (1)
427listBox1.ItemHeight = 15;
21 references to ItemHeight
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
1756PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight); 1957MeasureItemEventArgs mie = new(graphics, i, ItemHeight); 2167return ItemHeight != DefaultListBoxItemHeight && _drawMode != DrawMode.Normal; 2382MeasureItemEventArgs mie = new(graphics, (int)mis->itemID, ItemHeight); 2388mis->itemHeight = (uint)ItemHeight; 2482Height = Math.Max(Height, ItemHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3728bool resizable = DropDownListBox.Items.Count > (DropDownListBox.Height / DropDownListBox.ItemHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
591listBox.Height = Math.Max(listBox.Height, listBox.ItemHeight);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
905Rectangle bounds = new(0, selectedIndex * _selectedColumns.ItemHeight, _selectedColumns.Width, _selectedColumns.ItemHeight);
System.Windows.Forms.Tests (11)
System\Windows\Forms\ListBoxTests.cs (11)
86Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 1726Assert.Equal(value, control.ItemHeight); 1732Assert.Equal(value, control.ItemHeight); 1771Assert.True(control.ItemHeight > 0); 1780Assert.True(control.ItemHeight > 0); 1816PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)]; 1822Assert.Equal(15, control.ItemHeight); 1826Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 1833PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.ItemHeight)]; 1838Assert.Equal(15, control.ItemHeight); 1842Assert.Equal(Control.DefaultFont.Height, control.ItemHeight);