16 references to Count
PresentationFramework (16)
src\Framework\System\Windows\Documents\TextContainer.cs (2)
3305
Invariant.Assert(textBlock.
Count
> 0, "Empty TextBlock!");
3306
count += textBlock.
Count
;
src\Framework\System\Windows\Documents\TextTreeText.cs (9)
92
if (firstBlock.
Count
== firstBlockLocalOffset)
106
if (firstBlockLocalOffset > 0 || count < firstBlock.
Count
)
109
firstCount = Math.Min(count, firstBlock.
Count
- firstBlockLocalOffset);
125
if (lastBlockLocalOffset < lastBlock.
Count
)
263
Invariant.Assert(localOffset >= 0 && localOffset <= node.
Count
);
288
textOffset += neighborBlock.InsertText(neighborBlock.
Count
, text, textOffset, length);
300
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, length);
342
if (leftBlock.GapOffset == leftBlock.
Count
)
370
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, textEndOffset);
src\Framework\System\Windows\Documents\TextTreeTextBlock.cs (5)
100
newText = new char[Math.Min(this.
Count
+ count, MaxBlockSize)];
195
Invariant.Assert(logicalOffset + count <= this.
Count
, "Removing too much text!");
198
int originalCount = this.
Count
;
239
Invariant.Assert(originalCount == this.
Count
+ originalCountToRemove);
407
return this.
Count
;