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();
2979
private void ResetHeightCache() =>
_prefHeightCache
= -1;
3 references to _prefHeightCache
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
793
return
_prefHeightCache
;
799
if (
_prefHeightCache
< 0)
818
return
_prefHeightCache
;