16 references to MaxBlockSize
PresentationFramework (16)
System\Windows\Documents\TextTreeText.cs (7)
53
if (block.GapOffset < TextTreeTextBlock.
MaxBlockSize
/ 2)
309
newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.
MaxBlockSize
- 1) / TextTreeTextBlock.
MaxBlockSize
;
315
newBlock = new TextTreeTextBlock(TextTreeTextBlock.
MaxBlockSize
);
371
newBlockCount += (textEndOffset - textOffset + TextTreeTextBlock.
MaxBlockSize
- 1) / TextTreeTextBlock.
MaxBlockSize
;
377
newBlock = new TextTreeTextBlock(TextTreeTextBlock.
MaxBlockSize
);
System\Windows\Documents\TextTreeTextBlock.cs (9)
37
Invariant.Assert(size <=
MaxBlockSize
);
89
if (_text.Length <
MaxBlockSize
&& count > _gapSize)
95
newText = new char[Math.Min(this.Count + count,
MaxBlockSize
)];
144
Invariant.Assert(_text.Length ==
MaxBlockSize
, "Splitting non-max sized block!");
146
newBlock = new TextTreeTextBlock(
MaxBlockSize
);
148
if (_gapOffset <
MaxBlockSize
/ 2)
153
newBlock._gapSize =
MaxBlockSize
- _gapOffset;
165
Array.Copy(_text, _gapOffset, newBlock._text, _gapOffset,
MaxBlockSize
- _gapOffset);
170
_gapSize =
MaxBlockSize
- _gapOffset;