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