4 writes to _prefHeightCache
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
775_prefHeightCache = (short)(textSize.Height + SystemInformation.BorderSize.Height * 8 + Padding.Size.Height); 792_prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.BorderSize.Height * 16 + Padding.Size.Height); 798_prefHeightCache = (short)GetComboHeight(); 2969private void ResetHeightCache() => _prefHeightCache = -1;
3 references to _prefHeightCache
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
777return _prefHeightCache; 783if (_prefHeightCache < 0) 802return _prefHeightCache;