2 writes to _indexCache
PresentationFramework (2)
src\Framework\System\Windows\Documents\TextElementCollection.cs (2)
54
_indexCache
= new ElementIndexCache(-1, null);
903
_indexCache
= new ElementIndexCache(index, item);
17 references to _indexCache
PresentationFramework (17)
src\Framework\System\Windows\Documents\TextElementCollection.cs (17)
163
if (
_indexCache
.IsValid(this))
165
element =
_indexCache
.Element;
166
count +=
_indexCache
.Index;
430
bool isCacheSafePreviousIndex =
_indexCache
.IsValid(this);
866
if (
_indexCache
.IsValid(this))
868
if (
_indexCache
.Index == index)
870
element =
_indexCache
.Element;
873
else if (
_indexCache
.Index < index)
875
element =
_indexCache
.Element;
876
index = index -
_indexCache
.Index;
880
element =
_indexCache
.Element;
881
index =
_indexCache
.Index - index;
923
if (
_indexCache
.IsValid(this))
925
if ((object)item == (object)
_indexCache
.Element)
927
return
_indexCache
.Index;
936
index =
_indexCache
.Index;
937
element =
_indexCache
.Element;