1 override of ItemHeight
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
146
public override int
ItemHeight
20 writes to ItemHeight
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
325
_listBox.
ItemHeight
= RowHeight;
5124
DropDownListBox.
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;
263
lb.
ItemHeight
= lb.Font.Height;
268
lb.
ItemHeight
= lb.Font.Height;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
23
ItemHeight
= 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)
1726
ItemHeight
= value
1733
control.
ItemHeight
= value;
1772
control.
ItemHeight
= value;
1781
control.
ItemHeight
= value;
1799
ItemHeight
= 25
1812
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
ItemHeight
= value);
1823
control.
ItemHeight
= 15;
1839
control.
ItemHeight
= 15;
TestPassApp (2)
CommonControl1.Designer.cs (1)
575
this.listBox1.
ItemHeight
= 32;
DataBindingExample.Designer.cs (1)
263
this.listBox1.
ItemHeight
= 15;
WinFormsControlsTest (1)
ScrollableControls.Designer.cs (1)
427
listBox1.
ItemHeight
= 15;
21 references to ItemHeight
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
1756
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)
ItemHeight
);
1957
MeasureItemEventArgs mie = new(graphics, i,
ItemHeight
);
2167
return
ItemHeight
!= DefaultListBoxItemHeight && _drawMode != DrawMode.Normal;
2382
MeasureItemEventArgs mie = new(graphics, (int)mis->itemID,
ItemHeight
);
2388
mis->itemHeight = (uint)
ItemHeight
;
2482
Height = Math.Max(Height,
ItemHeight
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3728
bool resizable = DropDownListBox.Items.Count > (DropDownListBox.Height / DropDownListBox.
ItemHeight
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
591
listBox.Height = Math.Max(listBox.Height, listBox.
ItemHeight
);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
905
Rectangle bounds = new(0, selectedIndex * _selectedColumns.
ItemHeight
, _selectedColumns.Width, _selectedColumns.
ItemHeight
);
System.Windows.Forms.Tests (11)
System\Windows\Forms\ListBoxTests.cs (11)
88
Assert.Equal(Control.DefaultFont.Height, control.
ItemHeight
);
1728
Assert.Equal(value, control.
ItemHeight
);
1734
Assert.Equal(value, control.
ItemHeight
);
1773
Assert.True(control.
ItemHeight
> 0);
1782
Assert.True(control.
ItemHeight
> 0);
1818
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.
ItemHeight
)];
1824
Assert.Equal(15, control.
ItemHeight
);
1828
Assert.Equal(Control.DefaultFont.Height, control.
ItemHeight
);
1835
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.
ItemHeight
)];
1840
Assert.Equal(15, control.
ItemHeight
);
1844
Assert.Equal(Control.DefaultFont.Height, control.
ItemHeight
);