1 write to _breakRecords
PresentationFramework (1)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
37
_breakRecords
= new List<BreakRecordTableEntry>();
54 references to _breakRecords
PresentationFramework (54)
MS\Internal\PtsHost\BreakRecordTable.cs (54)
60
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
67
Invariant.Assert(
_breakRecords
[pageNumber - 1] != null, "Invalid BreakRecordTable entry.");
68
breakRecord =
_breakRecords
[pageNumber - 1].BreakRecord;
86
if (pageNumber <
_breakRecords
.Count)
88
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
89
pageRef =
_breakRecords
[pageNumber].DocumentPage;
120
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
126
while (pageNumber <
_breakRecords
.Count)
128
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
129
textSegments =
_breakRecords
[pageNumber].TextSegments;
153
if (
_breakRecords
.Count > 0)
156
InvalidateBreakRecords(0,
_breakRecords
.Count);
177
if (
_breakRecords
.Count > 0)
185
pageCount =
_breakRecords
.Count - pageStart;
207
if (
_breakRecords
.Count > 0)
210
DisposePages(0,
_breakRecords
.Count);
214
_owner.OnPagesChanged(0,
_breakRecords
.Count);
227
if (
_breakRecords
.Count > 0)
255
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "The previous BreakRecord does not exist.");
274
if (pageNumber ==
_breakRecords
.Count)
276
_breakRecords
.Add(entry);
285
if (
_breakRecords
[pageNumber].BreakRecord != null &&
286
_breakRecords
[pageNumber].BreakRecord != entry.BreakRecord)
288
_breakRecords
[pageNumber].BreakRecord.Dispose();
290
if (
_breakRecords
[pageNumber].DocumentPage != null &&
291
_breakRecords
[pageNumber].DocumentPage.Target != null &&
292
_breakRecords
[pageNumber].DocumentPage.Target != entry.DocumentPage.Target)
294
((FlowDocumentPage)
_breakRecords
[pageNumber].DocumentPage.Target).Dispose();
296
_breakRecords
[pageNumber] = entry;
321
if (pageNumber >
_breakRecords
.Count)
323
Invariant.Assert(
_breakRecords
[pageNumber - 1] != null, "Invalid BreakRecordTable entry.");
324
return (
_breakRecords
[pageNumber - 1].BreakRecord != null);
342
get { return
_breakRecords
.Count; }
352
if (
_breakRecords
.Count == 0)
354
Invariant.Assert(
_breakRecords
[
_breakRecords
.Count - 1] != null, "Invalid BreakRecordTable entry.");
355
return (
_breakRecords
[
_breakRecords
.Count - 1].BreakRecord == null);
379
Invariant.Assert(start >= 0 && start <
_breakRecords
.Count, "Invalid starting index for BreakRecordTable invalidation.");
380
Invariant.Assert(start + count <=
_breakRecords
.Count, "Partial invalidation of BreakRecordTable is not allowed.");
384
Invariant.Assert(
_breakRecords
[index] != null, "Invalid BreakRecordTable entry.");
385
pageRef =
_breakRecords
[index].DocumentPage;
390
_breakRecords
[index].DocumentPage = null;
405
Invariant.Assert(start >= 0 && start <
_breakRecords
.Count, "Invalid starting index for BreakRecordTable invalidation.");
406
Invariant.Assert(start + count ==
_breakRecords
.Count, "Partial invalidation of BreakRecordTable is not allowed.");
410
Invariant.Assert(
_breakRecords
[index] != null, "Invalid BreakRecordTable entry.");
412
pageRef =
_breakRecords
[index].DocumentPage;
417
_breakRecords
[index].BreakRecord?.Dispose();
419
_breakRecords
.RemoveAt(index);
439
while (pageStart <
_breakRecords
.Count)
441
Invariant.Assert(
_breakRecords
[pageStart] != null, "Invalid BreakRecordTable entry.");
445
dependentMax =
_breakRecords
[pageStart].DependentMax;
452
textSegments =
_breakRecords
[pageStart].TextSegments;
477
pageCount =
_breakRecords
.Count - pageStart;