5 writes to _cacheItems
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1016_cacheItems = null; 1185_cacheItems = new CacheItems(); 1208_cacheItems = new CacheItems(); 1809_cacheItems ??= new CacheItems(); 2084_cacheItems = new CacheItems
46 references to _cacheItems
System.Windows.Forms (46)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (46)
276if (expandable && _cacheItems?.LastValue is null && PropertyValue is null) 457if (_cacheItems is not null) 459_cacheItems.LastValueString = null; 460_cacheItems.UseValueString = false; 461_cacheItems.UseShouldSerialize = false; 746get => _cacheItems?.LastValue; 846if (_cacheItems is not null) 848_cacheItems.UseValueString = false; 849_cacheItems.LastValue = null; 850_cacheItems.UseShouldSerialize = false; 1183if (_cacheItems is null) 1187else if (_cacheItems.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering 1188&& _cacheItems.LastLabel == text 1189&& font.Equals(_cacheItems.LastLabelFont)) 1191return _cacheItems.LastLabelWidth; 1196_cacheItems.LastLabelWidth = (int)textSize.Width; 1197_cacheItems.LastLabel = text; 1198_cacheItems.LastLabelFont = font; 1199_cacheItems.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering; 1201return _cacheItems.LastLabelWidth; 1206if (_cacheItems is null) 1210else if (_cacheItems.LastValueTextWidth != -1 1211&& _cacheItems.LastValueString == text 1212&& font.Equals(_cacheItems.LastValueFont)) 1214return _cacheItems.LastValueTextWidth; 1219_cacheItems.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width; 1220_cacheItems.LastValueString = text; 1221_cacheItems.LastValueFont = font; 1222return _cacheItems.LastValueTextWidth; 1799if (_cacheItems is not null && _cacheItems.UseValueString) 1801text = _cacheItems.LastValueString; 1802value = _cacheItems.LastValue; 1810_cacheItems.LastValueString = text; 1811_cacheItems.UseValueString = true; 1812_cacheItems.LastValueTextWidth = -1; 1813_cacheItems.LastValueFont = null; 1814_cacheItems.LastValue = value; 2070if (_cacheItems is not null) 2072if (_cacheItems.UseShouldSerialize) 2074return _cacheItems.LastShouldSerialize; 2078_cacheItems.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist); 2079_cacheItems.UseShouldSerialize = true; 2091return _cacheItems.LastShouldSerialize; 2202if (InternalExpanded && _cacheItems?.LastValue is not null && _cacheItems.LastValue != PropertyValue)