1 write to _breakRecords
PresentationFramework (1)
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (1)
42_breakRecords = new List<BreakRecordTableEntry>();
55 references to _breakRecords
PresentationFramework (55)
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (55)
65Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 72Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 73breakRecord = _breakRecords[pageNumber - 1].BreakRecord; 91if (pageNumber < _breakRecords.Count) 93Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 94pageRef = _breakRecords[pageNumber].DocumentPage; 125Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 131while (pageNumber < _breakRecords.Count) 133Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 134textSegments = _breakRecords[pageNumber].TextSegments; 158if (_breakRecords.Count > 0) 161InvalidateBreakRecords(0, _breakRecords.Count); 182if (_breakRecords.Count > 0) 190pageCount = _breakRecords.Count - pageStart; 212if (_breakRecords.Count > 0) 215DisposePages(0, _breakRecords.Count); 219_owner.OnPagesChanged(0, _breakRecords.Count); 232if (_breakRecords.Count > 0) 260Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "The previous BreakRecord does not exist."); 277if (pageNumber == _breakRecords.Count) 279_breakRecords.Add(entry); 288if (_breakRecords[pageNumber].BreakRecord != null && 289_breakRecords[pageNumber].BreakRecord != entry.BreakRecord) 291_breakRecords[pageNumber].BreakRecord.Dispose(); 293if (_breakRecords[pageNumber].DocumentPage != null && 294_breakRecords[pageNumber].DocumentPage.Target != null && 295_breakRecords[pageNumber].DocumentPage.Target != entry.DocumentPage.Target) 297((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.Target).Dispose(); 299_breakRecords[pageNumber] = entry; 324if (pageNumber > _breakRecords.Count) 326Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 327return (_breakRecords[pageNumber - 1].BreakRecord != null); 345get { return _breakRecords.Count; } 355if (_breakRecords.Count == 0) 357Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 358return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 382Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 383Invariant.Assert(start + count <= _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 387Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 388pageRef = _breakRecords[index].DocumentPage; 393_breakRecords[index].DocumentPage = null; 408Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 409Invariant.Assert(start + count == _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 413Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 415pageRef = _breakRecords[index].DocumentPage; 420if (_breakRecords[index].BreakRecord != null) 422_breakRecords[index].BreakRecord.Dispose(); 425_breakRecords.RemoveAt(index); 445while (pageStart < _breakRecords.Count) 447Invariant.Assert(_breakRecords[pageStart] != null, "Invalid BreakRecordTable entry."); 451dependentMax = _breakRecords[pageStart].DependentMax; 458textSegments = _breakRecords[pageStart].TextSegments; 483pageCount = _breakRecords.Count - pageStart;