17 references to Count
PresentationFramework (17)
System\Windows\Documents\TextContainer.cs (2)
3284
Invariant.Assert(textBlock.
Count
> 0, "Empty TextBlock!");
3285
count += textBlock.
Count
;
System\Windows\Documents\TextTreeText.cs (9)
85
if (firstBlock.
Count
== firstBlockLocalOffset)
99
if (firstBlockLocalOffset > 0 || count < firstBlock.
Count
)
102
firstCount = Math.Min(count, firstBlock.
Count
- firstBlockLocalOffset);
118
if (lastBlockLocalOffset < lastBlock.
Count
)
256
Invariant.Assert(localOffset >= 0 && localOffset <= node.
Count
);
281
textOffset += neighborBlock.InsertText(neighborBlock.
Count
, text, textOffset, length);
293
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, length);
335
if (leftBlock.GapOffset == leftBlock.
Count
)
363
textOffset += leftBlock.InsertText(leftBlock.
Count
, text, textOffset, textEndOffset);
System\Windows\Documents\TextTreeTextBlock.cs (6)
56
return ("TextTreeTextBlock Id=" + this.DebugId + " Count=" + this.
Count
);
94
newText = new char[Math.Min(this.
Count
+ count, MaxBlockSize)];
189
Invariant.Assert(logicalOffset + count <= this.
Count
, "Removing too much text!");
192
int originalCount = this.
Count
;
233
Invariant.Assert(originalCount == this.
Count
+ originalCountToRemove);
401
return this.
Count
;