2 writes to _indexCache
PresentationFramework (2)
System\Windows\Documents\TextElementCollection.cs (2)
52
_indexCache
= new ElementIndexCache(-1, null);
868
_indexCache
= new ElementIndexCache(index, item);
17 references to _indexCache
PresentationFramework (17)
System\Windows\Documents\TextElementCollection.cs (17)
158
if (
_indexCache
.IsValid(this))
160
element =
_indexCache
.Element;
161
count +=
_indexCache
.Index;
407
bool isCacheSafePreviousIndex =
_indexCache
.IsValid(this);
831
if (
_indexCache
.IsValid(this))
833
if (
_indexCache
.Index == index)
835
element =
_indexCache
.Element;
838
else if (
_indexCache
.Index < index)
840
element =
_indexCache
.Element;
841
index = index -
_indexCache
.Index;
845
element =
_indexCache
.Element;
846
index =
_indexCache
.Index - index;
888
if (
_indexCache
.IsValid(this))
890
if ((object)item == (object)
_indexCache
.Element)
892
return
_indexCache
.Index;
901
index =
_indexCache
.Index;
902
element =
_indexCache
.Element;