16 references to MaxBlockSize
PresentationFramework (16)
src\Framework\System\Windows\Documents\TextTreeText.cs (7)
58
if (block.GapOffset < TextTreeTextBlock.
MaxBlockSize
/ 2)
314
newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.
MaxBlockSize
- 1) / TextTreeTextBlock.
MaxBlockSize
;
320
newBlock = new TextTreeTextBlock(TextTreeTextBlock.
MaxBlockSize
);
376
newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.
MaxBlockSize
- 1) / TextTreeTextBlock.
MaxBlockSize
;
382
newBlock = new TextTreeTextBlock(TextTreeTextBlock.
MaxBlockSize
);
src\Framework\System\Windows\Documents\TextTreeTextBlock.cs (9)
42
Invariant.Assert(size <=
MaxBlockSize
);
94
if (_text.Length <
MaxBlockSize
&& count > _gapSize)
100
newText = new char[Math.Min(this.Count + count,
MaxBlockSize
)];
149
Invariant.Assert(_text.Length ==
MaxBlockSize
, "Splitting non-max sized block!");
151
newBlock = new TextTreeTextBlock(
MaxBlockSize
);
153
if (_gapOffset <
MaxBlockSize
/ 2)
158
newBlock._gapSize =
MaxBlockSize
- _gapOffset;
170
Array.Copy(_text, _gapOffset, newBlock._text, _gapOffset,
MaxBlockSize
- _gapOffset);
175
_gapSize =
MaxBlockSize
- _gapOffset;