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