17 references to Count
PresentationFramework (17)
System\Windows\Documents\TextContainer.cs (2)
3289
Invariant.Assert(textBlock.
Count
> 0, "Empty TextBlock!");
3290
count += textBlock.
Count
;
System\Windows\Documents\TextTreeText.cs (9)
87
if (firstBlock.
Count
== firstBlockLocalOffset)
101
if (firstBlockLocalOffset > 0 || count < firstBlock.
Count
)
104
firstCount = Math.Min(count, firstBlock.
Count
- firstBlockLocalOffset);
120
if (lastBlockLocalOffset < lastBlock.
Count
)
258
Invariant.Assert(localOffset >= 0 && localOffset <= node.
Count
);
283
textOffset += neighborBlock.InsertText(neighborBlock.
Count
, text, textOffset, length);
295
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, length);
337
if (leftBlock.GapOffset == leftBlock.
Count
)
365
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, textEndOffset);
System\Windows\Documents\TextTreeTextBlock.cs (6)
57
return ("TextTreeTextBlock Id=" + this.DebugId + " Count=" + this.
Count
);
95
newText = new char[Math.Min(this.
Count
+ count, MaxBlockSize)];
190
Invariant.Assert(logicalOffset + count <= this.
Count
, "Removing too much text!");
193
int originalCount = this.
Count
;
234
Invariant.Assert(originalCount == this.
Count
+ originalCountToRemove);
402
return this.
Count
;