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)
276
if (expandable &&
_cacheItems
?.LastValue is null && PropertyValue is null)
457
if (
_cacheItems
is not null)
459
_cacheItems
.LastValueString = null;
460
_cacheItems
.UseValueString = false;
461
_cacheItems
.UseShouldSerialize = false;
746
get =>
_cacheItems
?.LastValue;
846
if (
_cacheItems
is not null)
848
_cacheItems
.UseValueString = false;
849
_cacheItems
.LastValue = null;
850
_cacheItems
.UseShouldSerialize = false;
1183
if (
_cacheItems
is null)
1187
else if (
_cacheItems
.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering
1188
&&
_cacheItems
.LastLabel == text
1189
&& font.Equals(
_cacheItems
.LastLabelFont))
1191
return
_cacheItems
.LastLabelWidth;
1196
_cacheItems
.LastLabelWidth = (int)textSize.Width;
1197
_cacheItems
.LastLabel = text;
1198
_cacheItems
.LastLabelFont = font;
1199
_cacheItems
.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering;
1201
return
_cacheItems
.LastLabelWidth;
1206
if (
_cacheItems
is null)
1210
else if (
_cacheItems
.LastValueTextWidth != -1
1211
&&
_cacheItems
.LastValueString == text
1212
&& font.Equals(
_cacheItems
.LastValueFont))
1214
return
_cacheItems
.LastValueTextWidth;
1219
_cacheItems
.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width;
1220
_cacheItems
.LastValueString = text;
1221
_cacheItems
.LastValueFont = font;
1222
return
_cacheItems
.LastValueTextWidth;
1799
if (
_cacheItems
is not null &&
_cacheItems
.UseValueString)
1801
text =
_cacheItems
.LastValueString;
1802
value =
_cacheItems
.LastValue;
1810
_cacheItems
.LastValueString = text;
1811
_cacheItems
.UseValueString = true;
1812
_cacheItems
.LastValueTextWidth = -1;
1813
_cacheItems
.LastValueFont = null;
1814
_cacheItems
.LastValue = value;
2070
if (
_cacheItems
is not null)
2072
if (
_cacheItems
.UseShouldSerialize)
2074
return
_cacheItems
.LastShouldSerialize;
2078
_cacheItems
.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist);
2079
_cacheItems
.UseShouldSerialize = true;
2091
return
_cacheItems
.LastShouldSerialize;
2202
if (InternalExpanded &&
_cacheItems
?.LastValue is not null &&
_cacheItems
.LastValue != PropertyValue)