1 write to _breakRecords
PresentationFramework (1)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
40_breakRecords = new List<BreakRecordTableEntry>();
55 references to _breakRecords
PresentationFramework (55)
MS\Internal\PtsHost\BreakRecordTable.cs (55)
63Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 70Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 71breakRecord = _breakRecords[pageNumber - 1].BreakRecord; 89if (pageNumber < _breakRecords.Count) 91Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 92pageRef = _breakRecords[pageNumber].DocumentPage; 123Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 129while (pageNumber < _breakRecords.Count) 131Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 132textSegments = _breakRecords[pageNumber].TextSegments; 156if (_breakRecords.Count > 0) 159InvalidateBreakRecords(0, _breakRecords.Count); 180if (_breakRecords.Count > 0) 188pageCount = _breakRecords.Count - pageStart; 210if (_breakRecords.Count > 0) 213DisposePages(0, _breakRecords.Count); 217_owner.OnPagesChanged(0, _breakRecords.Count); 230if (_breakRecords.Count > 0) 258Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "The previous BreakRecord does not exist."); 275if (pageNumber == _breakRecords.Count) 277_breakRecords.Add(entry); 286if (_breakRecords[pageNumber].BreakRecord != null && 287_breakRecords[pageNumber].BreakRecord != entry.BreakRecord) 289_breakRecords[pageNumber].BreakRecord.Dispose(); 291if (_breakRecords[pageNumber].DocumentPage != null && 292_breakRecords[pageNumber].DocumentPage.Target != null && 293_breakRecords[pageNumber].DocumentPage.Target != entry.DocumentPage.Target) 295((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.Target).Dispose(); 297_breakRecords[pageNumber] = entry; 322if (pageNumber > _breakRecords.Count) 324Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 325return (_breakRecords[pageNumber - 1].BreakRecord != null); 343get { return _breakRecords.Count; } 353if (_breakRecords.Count == 0) 355Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 356return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 380Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 381Invariant.Assert(start + count <= _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 385Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 386pageRef = _breakRecords[index].DocumentPage; 391_breakRecords[index].DocumentPage = null; 406Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 407Invariant.Assert(start + count == _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 411Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 413pageRef = _breakRecords[index].DocumentPage; 418if (_breakRecords[index].BreakRecord != null) 420_breakRecords[index].BreakRecord.Dispose(); 423_breakRecords.RemoveAt(index); 443while (pageStart < _breakRecords.Count) 445Invariant.Assert(_breakRecords[pageStart] != null, "Invalid BreakRecordTable entry."); 449dependentMax = _breakRecords[pageStart].DependentMax; 456textSegments = _breakRecords[pageStart].TextSegments; 481pageCount = _breakRecords.Count - pageStart;