1 write to _breakRecords
PresentationFramework (1)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
38
_breakRecords
= new List<BreakRecordTableEntry>();
54 references to _breakRecords
PresentationFramework (54)
MS\Internal\PtsHost\BreakRecordTable.cs (54)
61
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
68
Invariant.Assert(
_breakRecords
[pageNumber - 1] != null, "Invalid BreakRecordTable entry.");
69
breakRecord =
_breakRecords
[pageNumber - 1].BreakRecord;
87
if (pageNumber <
_breakRecords
.Count)
89
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
90
pageRef =
_breakRecords
[pageNumber].DocumentPage;
121
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
127
while (pageNumber <
_breakRecords
.Count)
129
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
130
textSegments =
_breakRecords
[pageNumber].TextSegments;
154
if (
_breakRecords
.Count > 0)
157
InvalidateBreakRecords(0,
_breakRecords
.Count);
178
if (
_breakRecords
.Count > 0)
186
pageCount =
_breakRecords
.Count - pageStart;
208
if (
_breakRecords
.Count > 0)
211
DisposePages(0,
_breakRecords
.Count);
215
_owner.OnPagesChanged(0,
_breakRecords
.Count);
228
if (
_breakRecords
.Count > 0)
256
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "The previous BreakRecord does not exist.");
275
if (pageNumber ==
_breakRecords
.Count)
277
_breakRecords
.Add(entry);
286
if (
_breakRecords
[pageNumber].BreakRecord != null &&
287
_breakRecords
[pageNumber].BreakRecord != entry.BreakRecord)
289
_breakRecords
[pageNumber].BreakRecord.Dispose();
291
if (
_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;
322
if (pageNumber >
_breakRecords
.Count)
324
Invariant.Assert(
_breakRecords
[pageNumber - 1] != null, "Invalid BreakRecordTable entry.");
325
return (
_breakRecords
[pageNumber - 1].BreakRecord != null);
343
get { return
_breakRecords
.Count; }
353
if (
_breakRecords
.Count == 0)
355
Invariant.Assert(
_breakRecords
[
_breakRecords
.Count - 1] != null, "Invalid BreakRecordTable entry.");
356
return (
_breakRecords
[
_breakRecords
.Count - 1].BreakRecord == null);
380
Invariant.Assert(start >= 0 && start <
_breakRecords
.Count, "Invalid starting index for BreakRecordTable invalidation.");
381
Invariant.Assert(start + count <=
_breakRecords
.Count, "Partial invalidation of BreakRecordTable is not allowed.");
385
Invariant.Assert(
_breakRecords
[index] != null, "Invalid BreakRecordTable entry.");
386
pageRef =
_breakRecords
[index].DocumentPage;
391
_breakRecords
[index].DocumentPage = null;
406
Invariant.Assert(start >= 0 && start <
_breakRecords
.Count, "Invalid starting index for BreakRecordTable invalidation.");
407
Invariant.Assert(start + count ==
_breakRecords
.Count, "Partial invalidation of BreakRecordTable is not allowed.");
411
Invariant.Assert(
_breakRecords
[index] != null, "Invalid BreakRecordTable entry.");
413
pageRef =
_breakRecords
[index].DocumentPage;
418
_breakRecords
[index].BreakRecord?.Dispose();
420
_breakRecords
.RemoveAt(index);
440
while (pageStart <
_breakRecords
.Count)
442
Invariant.Assert(
_breakRecords
[pageStart] != null, "Invalid BreakRecordTable entry.");
446
dependentMax =
_breakRecords
[pageStart].DependentMax;
453
textSegments =
_breakRecords
[pageStart].TextSegments;
478
pageCount =
_breakRecords
.Count - pageStart;