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