5 writes to _gapOffset
PresentationFramework (5)
System\Windows\Documents\TextTreeTextBlock.cs (5)
127
_gapOffset
+= count;
152
newBlock.
_gapOffset
= _gapOffset;
157
_gapOffset
= 0;
213
_gapOffset
-= precedingTextToRemoveCount;
484
_gapOffset
= offset;
31 references to _gapOffset
PresentationFramework (31)
System\Windows\Documents\TextTreeTextBlock.cs (31)
96
Array.Copy(_text, 0, newText, 0,
_gapOffset
);
97
rightOfGapLength = _text.Length - (
_gapOffset
+ _gapSize);
98
Array.Copy(_text,
_gapOffset
+ _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength);
104
if (logicalOffset !=
_gapOffset
)
148
if (
_gapOffset
< MaxBlockSize / 2)
151
Array.Copy(_text, 0, newBlock._text, 0,
_gapOffset
);
152
newBlock._gapOffset =
_gapOffset
;
153
newBlock._gapSize = MaxBlockSize -
_gapOffset
;
156
_gapSize +=
_gapOffset
;
165
Array.Copy(_text,
_gapOffset
, newBlock._text,
_gapOffset
, MaxBlockSize -
_gapOffset
);
166
Invariant.Assert(newBlock.
_gapOffset
== 0);
167
newBlock._gapSize =
_gapOffset
;
170
_gapSize = MaxBlockSize -
_gapOffset
;
203
if (logicalOffset <
_gapOffset
)
205
if (logicalOffset + count <
_gapOffset
)
212
precedingTextToRemoveCount = (logicalOffset + count ==
_gapOffset
) ? count :
_gapOffset
- logicalOffset;
217
logicalOffset =
_gapOffset
;
225
if (logicalOffset >
_gapOffset
+ _gapSize)
233
Invariant.Assert(
_gapOffset
+ _gapSize <= _text.Length);
247
if (logicalOffset <
_gapOffset
)
249
copyCount = Math.Min(count,
_gapOffset
- logicalOffset);
255
logicalOffset =
_gapOffset
;
449
return
_gapOffset
;
470
if (offset <
_gapOffset
)
474
count =
_gapOffset
- offset;
478
sourceOffset =
_gapOffset
+ _gapSize;
479
destinationOffset =
_gapOffset
;
480
count = offset -
_gapOffset
;