5 writes to _gapOffset
PresentationFramework (5)
src\Framework\System\Windows\Documents\TextTreeTextBlock.cs (5)
132
_gapOffset
+= count;
157
newBlock.
_gapOffset
= _gapOffset;
162
_gapOffset
= 0;
218
_gapOffset
-= precedingTextToRemoveCount;
489
_gapOffset
= offset;
31 references to _gapOffset
PresentationFramework (31)
src\Framework\System\Windows\Documents\TextTreeTextBlock.cs (31)
101
Array.Copy(_text, 0, newText, 0,
_gapOffset
);
102
rightOfGapLength = _text.Length - (
_gapOffset
+ _gapSize);
103
Array.Copy(_text,
_gapOffset
+ _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength);
109
if (logicalOffset !=
_gapOffset
)
153
if (
_gapOffset
< MaxBlockSize / 2)
156
Array.Copy(_text, 0, newBlock._text, 0,
_gapOffset
);
157
newBlock._gapOffset =
_gapOffset
;
158
newBlock._gapSize = MaxBlockSize -
_gapOffset
;
161
_gapSize +=
_gapOffset
;
170
Array.Copy(_text,
_gapOffset
, newBlock._text,
_gapOffset
, MaxBlockSize -
_gapOffset
);
171
Invariant.Assert(newBlock.
_gapOffset
== 0);
172
newBlock._gapSize =
_gapOffset
;
175
_gapSize = MaxBlockSize -
_gapOffset
;
208
if (logicalOffset <
_gapOffset
)
210
if (logicalOffset + count <
_gapOffset
)
217
precedingTextToRemoveCount = (logicalOffset + count ==
_gapOffset
) ? count :
_gapOffset
- logicalOffset;
222
logicalOffset =
_gapOffset
;
230
if (logicalOffset >
_gapOffset
+ _gapSize)
238
Invariant.Assert(
_gapOffset
+ _gapSize <= _text.Length);
252
if (logicalOffset <
_gapOffset
)
254
copyCount = Math.Min(count,
_gapOffset
- logicalOffset);
260
logicalOffset =
_gapOffset
;
454
return
_gapOffset
;
475
if (offset <
_gapOffset
)
479
count =
_gapOffset
- offset;
483
sourceOffset =
_gapOffset
+ _gapSize;
484
destinationOffset =
_gapOffset
;
485
count = offset -
_gapOffset
;