5 writes to _gapOffset
PresentationFramework (5)
System\Windows\Documents\TextTreeTextBlock.cs (5)
126
_gapOffset
+= count;
151
newBlock.
_gapOffset
= _gapOffset;
156
_gapOffset
= 0;
212
_gapOffset
-= precedingTextToRemoveCount;
483
_gapOffset
= offset;
31 references to _gapOffset
PresentationFramework (31)
System\Windows\Documents\TextTreeTextBlock.cs (31)
95
Array.Copy(_text, 0, newText, 0,
_gapOffset
);
96
rightOfGapLength = _text.Length - (
_gapOffset
+ _gapSize);
97
Array.Copy(_text,
_gapOffset
+ _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength);
103
if (logicalOffset !=
_gapOffset
)
147
if (
_gapOffset
< MaxBlockSize / 2)
150
Array.Copy(_text, 0, newBlock._text, 0,
_gapOffset
);
151
newBlock._gapOffset =
_gapOffset
;
152
newBlock._gapSize = MaxBlockSize -
_gapOffset
;
155
_gapSize +=
_gapOffset
;
164
Array.Copy(_text,
_gapOffset
, newBlock._text,
_gapOffset
, MaxBlockSize -
_gapOffset
);
165
Invariant.Assert(newBlock.
_gapOffset
== 0);
166
newBlock._gapSize =
_gapOffset
;
169
_gapSize = MaxBlockSize -
_gapOffset
;
202
if (logicalOffset <
_gapOffset
)
204
if (logicalOffset + count <
_gapOffset
)
211
precedingTextToRemoveCount = (logicalOffset + count ==
_gapOffset
) ? count :
_gapOffset
- logicalOffset;
216
logicalOffset =
_gapOffset
;
224
if (logicalOffset >
_gapOffset
+ _gapSize)
232
Invariant.Assert(
_gapOffset
+ _gapSize <= _text.Length);
246
if (logicalOffset <
_gapOffset
)
248
copyCount = Math.Min(count,
_gapOffset
- logicalOffset);
254
logicalOffset =
_gapOffset
;
448
return
_gapOffset
;
469
if (offset <
_gapOffset
)
473
count =
_gapOffset
- offset;
477
sourceOffset =
_gapOffset
+ _gapSize;
478
destinationOffset =
_gapOffset
;
479
count = offset -
_gapOffset
;