4 writes to _prefHeightCache
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
789_prefHeightCache = (short)(textSize.Height + SystemInformation.BorderSize.Height * 8 + Padding.Size.Height); 806_prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.BorderSize.Height * 16 + Padding.Size.Height); 812_prefHeightCache = (short)GetComboHeight(); 2975private void ResetHeightCache() => _prefHeightCache = -1;
3 references to _prefHeightCache
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
791return _prefHeightCache; 797if (_prefHeightCache < 0) 816return _prefHeightCache;