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