16 references to MaxBlockSize
PresentationFramework (16)
System\Windows\Documents\TextTreeText.cs (7)
51if (block.GapOffset < TextTreeTextBlock.MaxBlockSize / 2) 307newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.MaxBlockSize - 1) / TextTreeTextBlock.MaxBlockSize; 313newBlock = new TextTreeTextBlock(TextTreeTextBlock.MaxBlockSize); 369newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.MaxBlockSize - 1) / TextTreeTextBlock.MaxBlockSize; 375newBlock = new TextTreeTextBlock(TextTreeTextBlock.MaxBlockSize);
System\Windows\Documents\TextTreeTextBlock.cs (9)
36Invariant.Assert(size <= MaxBlockSize); 88if (_text.Length < MaxBlockSize && count > _gapSize) 94newText = new char[Math.Min(this.Count + count, MaxBlockSize)]; 143Invariant.Assert(_text.Length == MaxBlockSize, "Splitting non-max sized block!"); 145newBlock = new TextTreeTextBlock(MaxBlockSize); 147if (_gapOffset < MaxBlockSize / 2) 152newBlock._gapSize = MaxBlockSize - _gapOffset; 164Array.Copy(_text, _gapOffset, newBlock._text, _gapOffset, MaxBlockSize - _gapOffset); 169_gapSize = MaxBlockSize - _gapOffset;