4 writes to _prefHeightCache
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
791_prefHeightCache = (short)(textSize.Height + SystemInformation.BorderSize.Height * 8 + Padding.Size.Height); 808_prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.BorderSize.Height * 16 + Padding.Size.Height); 814_prefHeightCache = (short)GetComboHeight(); 2979private void ResetHeightCache() => _prefHeightCache = -1;
3 references to _prefHeightCache
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
793return _prefHeightCache; 799if (_prefHeightCache < 0) 818return _prefHeightCache;