5 writes to _cacheItems
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1022_cacheItems = null; 1191_cacheItems = new CacheItems(); 1214_cacheItems = new CacheItems(); 1815_cacheItems ??= new CacheItems(); 2090_cacheItems = new CacheItems
46 references to _cacheItems
System.Windows.Forms (46)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (46)
282if (expandable && _cacheItems?.LastValue is null && PropertyValue is null) 463if (_cacheItems is not null) 465_cacheItems.LastValueString = null; 466_cacheItems.UseValueString = false; 467_cacheItems.UseShouldSerialize = false; 752get => _cacheItems?.LastValue; 852if (_cacheItems is not null) 854_cacheItems.UseValueString = false; 855_cacheItems.LastValue = null; 856_cacheItems.UseShouldSerialize = false; 1189if (_cacheItems is null) 1193else if (_cacheItems.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering 1194&& _cacheItems.LastLabel == text 1195&& font.Equals(_cacheItems.LastLabelFont)) 1197return _cacheItems.LastLabelWidth; 1202_cacheItems.LastLabelWidth = (int)textSize.Width; 1203_cacheItems.LastLabel = text; 1204_cacheItems.LastLabelFont = font; 1205_cacheItems.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering; 1207return _cacheItems.LastLabelWidth; 1212if (_cacheItems is null) 1216else if (_cacheItems.LastValueTextWidth != -1 1217&& _cacheItems.LastValueString == text 1218&& font.Equals(_cacheItems.LastValueFont)) 1220return _cacheItems.LastValueTextWidth; 1225_cacheItems.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width; 1226_cacheItems.LastValueString = text; 1227_cacheItems.LastValueFont = font; 1228return _cacheItems.LastValueTextWidth; 1805if (_cacheItems is not null && _cacheItems.UseValueString) 1807text = _cacheItems.LastValueString; 1808value = _cacheItems.LastValue; 1816_cacheItems.LastValueString = text; 1817_cacheItems.UseValueString = true; 1818_cacheItems.LastValueTextWidth = -1; 1819_cacheItems.LastValueFont = null; 1820_cacheItems.LastValue = value; 2076if (_cacheItems is not null) 2078if (_cacheItems.UseShouldSerialize) 2080return _cacheItems.LastShouldSerialize; 2084_cacheItems.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist); 2085_cacheItems.UseShouldSerialize = true; 2097return _cacheItems.LastShouldSerialize; 2208if (InternalExpanded && _cacheItems?.LastValue is not null && _cacheItems.LastValue != PropertyValue)