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)
63
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
70
Invariant.Assert(
_breakRecords
[pageNumber - 1] != null, "Invalid BreakRecordTable entry.");
71
breakRecord =
_breakRecords
[pageNumber - 1].BreakRecord;
89
if (pageNumber <
_breakRecords
.Count)
91
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
92
pageRef =
_breakRecords
[pageNumber].DocumentPage;
123
Invariant.Assert(pageNumber >= 0 && pageNumber <=
_breakRecords
.Count, "Invalid PageNumber.");
129
while (pageNumber <
_breakRecords
.Count)
131
Invariant.Assert(
_breakRecords
[pageNumber] != null, "Invalid BreakRecordTable entry.");
132
textSegments =
_breakRecords
[pageNumber].TextSegments;
156
if (
_breakRecords
.Count > 0)
159
InvalidateBreakRecords(0,
_breakRecords
.Count);
180
if (
_breakRecords
.Count > 0)
188
pageCount =
_breakRecords
.Count - pageStart;
210
if (
_breakRecords
.Count > 0)
213
DisposePages(0,
_breakRecords
.Count);
217
_owner.OnPagesChanged(0,
_breakRecords
.Count);
230
if (
_breakRecords
.Count > 0)
258
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
if (
_breakRecords
[index].BreakRecord != null)
420
_breakRecords
[index].BreakRecord.Dispose();
423
_breakRecords
.RemoveAt(index);
443
while (pageStart <
_breakRecords
.Count)
445
Invariant.Assert(
_breakRecords
[pageStart] != null, "Invalid BreakRecordTable entry.");
449
dependentMax =
_breakRecords
[pageStart].DependentMax;
456
textSegments =
_breakRecords
[pageStart].TextSegments;
481
pageCount =
_breakRecords
.Count - pageStart;