9 writes to _gapSize
PresentationFramework (9)
System\Windows\Documents\TextTreeTextBlock.cs (9)
38_gapSize = size; 97_gapSize += newText.Length - _text.Length; 126_gapSize -= count; 151newBlock._gapSize = MaxBlockSize - _gapOffset; 154_gapSize += _gapOffset; 165newBlock._gapSize = _gapOffset; 168_gapSize = MaxBlockSize - _gapOffset; 212_gapSize += precedingTextToRemoveCount; 230_gapSize += count;
14 references to _gapSize
PresentationFramework (14)
System\Windows\Documents\TextTreeTextBlock.cs (14)
87if (_text.Length < MaxBlockSize && count > _gapSize) 95rightOfGapLength = _text.Length - (_gapOffset + _gapSize); 96Array.Copy(_text, _gapOffset + _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength); 108count = Math.Min(count, _gapSize); 141Invariant.Assert(_gapSize == 0, "Splitting non-full block!"); 220logicalOffset += _gapSize; 223if (logicalOffset > _gapOffset + _gapSize) 226MoveGap(logicalOffset - _gapSize); 231Invariant.Assert(_gapOffset + _gapSize <= _text.Length); 259logicalOffset += _gapSize; 429return (_text.Length - _gapSize); 438return _gapSize; 471destinationOffset = offset + _gapSize; 476sourceOffset = _gapOffset + _gapSize;