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)
273
if (expandable &&
_cacheItems
?.LastValue is null && PropertyValue is null)
454
if (
_cacheItems
is not null)
456
_cacheItems
.LastValueString = null;
457
_cacheItems
.UseValueString = false;
458
_cacheItems
.UseShouldSerialize = false;
743
get =>
_cacheItems
?.LastValue;
843
if (
_cacheItems
is not null)
845
_cacheItems
.UseValueString = false;
846
_cacheItems
.LastValue = null;
847
_cacheItems
.UseShouldSerialize = false;
1180
if (
_cacheItems
is null)
1184
else if (
_cacheItems
.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering
1185
&&
_cacheItems
.LastLabel == text
1186
&& font.Equals(
_cacheItems
.LastLabelFont))
1188
return
_cacheItems
.LastLabelWidth;
1193
_cacheItems
.LastLabelWidth = (int)textSize.Width;
1194
_cacheItems
.LastLabel = text;
1195
_cacheItems
.LastLabelFont = font;
1196
_cacheItems
.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering;
1198
return
_cacheItems
.LastLabelWidth;
1203
if (
_cacheItems
is null)
1207
else if (
_cacheItems
.LastValueTextWidth != -1
1208
&&
_cacheItems
.LastValueString == text
1209
&& font.Equals(
_cacheItems
.LastValueFont))
1211
return
_cacheItems
.LastValueTextWidth;
1216
_cacheItems
.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width;
1217
_cacheItems
.LastValueString = text;
1218
_cacheItems
.LastValueFont = font;
1219
return
_cacheItems
.LastValueTextWidth;
1796
if (
_cacheItems
is not null &&
_cacheItems
.UseValueString)
1798
text =
_cacheItems
.LastValueString;
1799
value =
_cacheItems
.LastValue;
1807
_cacheItems
.LastValueString = text;
1808
_cacheItems
.UseValueString = true;
1809
_cacheItems
.LastValueTextWidth = -1;
1810
_cacheItems
.LastValueFont = null;
1811
_cacheItems
.LastValue = value;
2067
if (
_cacheItems
is not null)
2069
if (
_cacheItems
.UseShouldSerialize)
2071
return
_cacheItems
.LastShouldSerialize;
2075
_cacheItems
.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist);
2076
_cacheItems
.UseShouldSerialize = true;
2088
return
_cacheItems
.LastShouldSerialize;
2199
if (InternalExpanded &&
_cacheItems
?.LastValue is not null &&
_cacheItems
.LastValue != PropertyValue)