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();
2975
private void ResetHeightCache() =>
_prefHeightCache
= -1;
3 references to _prefHeightCache
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
791
return
_prefHeightCache
;
797
if (
_prefHeightCache
< 0)
816
return
_prefHeightCache
;