5 writes to cacheItems
System.Windows.Forms (5)
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (5)
1264
cacheItems
= null;
1400
cacheItems
= new CacheItems();
1419
cacheItems
= new CacheItems();
2109
cacheItems
= new CacheItems();
2468
cacheItems
= new CacheItems();
52 references to cacheItems
System.Windows.Forms (52)
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (52)
410
if (fExpandable && (
cacheItems
== null ||
cacheItems
.lastValue == null) && this.PropertyValue == null) {
573
if (
cacheItems
!= null) {
574
cacheItems
.lastValueString = null;
575
cacheItems
.useValueString = false;
576
cacheItems
.useShouldSerialize = false;
959
if (
cacheItems
!= null) {
960
return
cacheItems
.lastValue;
1113
if (
cacheItems
!= null) {
1114
cacheItems
.useValueString = false;
1115
cacheItems
.lastValue = null;
1116
cacheItems
.useShouldSerialize = false;
1399
if (
cacheItems
== null) {
1402
else if (
cacheItems
.useCompatTextRendering == ownerGrid.UseCompatibleTextRendering &&
cacheItems
.lastLabel == labelText && f.Equals(
cacheItems
.lastLabelFont)) {
1403
return
cacheItems
.lastLabelWidth;
1408
cacheItems
.lastLabelWidth = (int) textSize.Width;
1409
cacheItems
.lastLabel = labelText;
1410
cacheItems
.lastLabelFont = f;
1411
cacheItems
.useCompatTextRendering = ownerGrid.UseCompatibleTextRendering;
1413
return
cacheItems
.lastLabelWidth;
1418
if (
cacheItems
== null) {
1421
else if (
cacheItems
.lastValueTextWidth != -1 &&
cacheItems
.lastValueString == valueString && f.Equals(
cacheItems
.lastValueFont)) {
1422
return
cacheItems
.lastValueTextWidth;
1426
cacheItems
.lastValueTextWidth = (int) g.MeasureString(valueString, f).Width;
1427
cacheItems
.lastValueString = valueString;
1428
cacheItems
.lastValueFont = f;
1429
return
cacheItems
.lastValueTextWidth;
2101
if (
cacheItems
!= null &&
cacheItems
.useValueString) {
2102
strValue =
cacheItems
.lastValueString;
2103
val =
cacheItems
.lastValue;
2108
if (
cacheItems
== null) {
2111
cacheItems
.lastValueString = strValue;
2112
cacheItems
.useValueString = true;
2113
cacheItems
.lastValueTextWidth = -1;
2114
cacheItems
.lastValueFont = null;
2115
cacheItems
.lastValue = val;
2458
if (
cacheItems
!= null) {
2459
if (
cacheItems
.useShouldSerialize) {
2460
return
cacheItems
.lastShouldSerialize;
2463
cacheItems
.lastShouldSerialize = NotifyValue(NOTIFY_SHOULD_PERSIST);
2464
cacheItems
.useShouldSerialize = true;
2469
cacheItems
.lastShouldSerialize = NotifyValue(NOTIFY_SHOULD_PERSIST);
2470
cacheItems
.useShouldSerialize = true;
2472
return
cacheItems
.lastShouldSerialize;
2574
if (this.InternalExpanded &&
cacheItems
!= null &&
cacheItems
.lastValue != null &&
cacheItems
.lastValue != this.PropertyValue) {