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)
282
if (expandable &&
_cacheItems
?.LastValue is null && PropertyValue is null)
463
if (
_cacheItems
is not null)
465
_cacheItems
.LastValueString = null;
466
_cacheItems
.UseValueString = false;
467
_cacheItems
.UseShouldSerialize = false;
752
get =>
_cacheItems
?.LastValue;
852
if (
_cacheItems
is not null)
854
_cacheItems
.UseValueString = false;
855
_cacheItems
.LastValue = null;
856
_cacheItems
.UseShouldSerialize = false;
1189
if (
_cacheItems
is null)
1193
else if (
_cacheItems
.UseCompatTextRendering == OwnerGrid.UseCompatibleTextRendering
1194
&&
_cacheItems
.LastLabel == text
1195
&& font.Equals(
_cacheItems
.LastLabelFont))
1197
return
_cacheItems
.LastLabelWidth;
1202
_cacheItems
.LastLabelWidth = (int)textSize.Width;
1203
_cacheItems
.LastLabel = text;
1204
_cacheItems
.LastLabelFont = font;
1205
_cacheItems
.UseCompatTextRendering = OwnerGrid.UseCompatibleTextRendering;
1207
return
_cacheItems
.LastLabelWidth;
1212
if (
_cacheItems
is null)
1216
else if (
_cacheItems
.LastValueTextWidth != -1
1217
&&
_cacheItems
.LastValueString == text
1218
&& font.Equals(
_cacheItems
.LastValueFont))
1220
return
_cacheItems
.LastValueTextWidth;
1225
_cacheItems
.LastValueTextWidth = (int)graphics.MeasureString(text, font).Width;
1226
_cacheItems
.LastValueString = text;
1227
_cacheItems
.LastValueFont = font;
1228
return
_cacheItems
.LastValueTextWidth;
1805
if (
_cacheItems
is not null &&
_cacheItems
.UseValueString)
1807
text =
_cacheItems
.LastValueString;
1808
value =
_cacheItems
.LastValue;
1816
_cacheItems
.LastValueString = text;
1817
_cacheItems
.UseValueString = true;
1818
_cacheItems
.LastValueTextWidth = -1;
1819
_cacheItems
.LastValueFont = null;
1820
_cacheItems
.LastValue = value;
2076
if (
_cacheItems
is not null)
2078
if (
_cacheItems
.UseShouldSerialize)
2080
return
_cacheItems
.LastShouldSerialize;
2084
_cacheItems
.LastShouldSerialize = SendNotificationToParent(Notify.ShouldPersist);
2085
_cacheItems
.UseShouldSerialize = true;
2097
return
_cacheItems
.LastShouldSerialize;
2208
if (InternalExpanded &&
_cacheItems
?.LastValue is not null &&
_cacheItems
.LastValue != PropertyValue)