5 writes to _cacheItems
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1013_cacheItems = null; 1182_cacheItems = new CacheItems(); 1205_cacheItems = new CacheItems(); 1806_cacheItems ??= new CacheItems(); 2081_cacheItems = new CacheItems
46 references to _cacheItems
System.Windows.Forms (46)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (46)
273if (expandable && _cacheItems?.LastValue is null && PropertyValue is null) 454if (_cacheItems is not null) 456_cacheItems.LastValueString = null; 457_cacheItems.UseValueString = false; 458_cacheItems.UseShouldSerialize = false; 743get => _cacheItems?.LastValue; 843if (_cacheItems is not null) 845_cacheItems.UseValueString = false; 846_cacheItems.LastValue = null; 847_cacheItems.UseShouldSerialize = false; 1180if (_cacheItems is null) 1184else if (_cacheItems.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering 1185&& _cacheItems.LastLabel == text 1186&& font.Equals(_cacheItems.LastLabelFont)) 1188return _cacheItems.LastLabelWidth; 1193_cacheItems.LastLabelWidth = (int)textSize.Width; 1194_cacheItems.LastLabel = text; 1195_cacheItems.LastLabelFont = font; 1196_cacheItems.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering; 1198return _cacheItems.LastLabelWidth; 1203if (_cacheItems is null) 1207else if (_cacheItems.LastValueTextWidth != -1 1208&& _cacheItems.LastValueString == text 1209&& font.Equals(_cacheItems.LastValueFont)) 1211return _cacheItems.LastValueTextWidth; 1216_cacheItems.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width; 1217_cacheItems.LastValueString = text; 1218_cacheItems.LastValueFont = font; 1219return _cacheItems.LastValueTextWidth; 1796if (_cacheItems is not null && _cacheItems.UseValueString) 1798text = _cacheItems.LastValueString; 1799value = _cacheItems.LastValue; 1807_cacheItems.LastValueString = text; 1808_cacheItems.UseValueString = true; 1809_cacheItems.LastValueTextWidth = -1; 1810_cacheItems.LastValueFont = null; 1811_cacheItems.LastValue = value; 2067if (_cacheItems is not null) 2069if (_cacheItems.UseShouldSerialize) 2071return _cacheItems.LastShouldSerialize; 2075_cacheItems.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist); 2076_cacheItems.UseShouldSerialize = true; 2088return _cacheItems.LastShouldSerialize; 2199if (InternalExpanded && _cacheItems?.LastValue is not null && _cacheItems.LastValue != PropertyValue)