1 write to _structuralCache
PresentationFramework (1)
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1234
_structuralCache
= new StructuralCache(this, textContainer);
50 references to _structuralCache
PresentationFramework (50)
src\Framework\System\Windows\Documents\FlowDocument.cs (50)
183
return
_structuralCache
.TextContainer.Start;
198
return
_structuralCache
.TextContainer.End;
792
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce)
802
if (
_structuralCache
.IsFormattingInProgress)
804
_structuralCache
.OnInvalidOperationDetected();
811
_structuralCache
.InvalidateFormatCache(!affectsRender);
849
return new RangeContentEnumerator(
_structuralCache
.TextContainer.Start,
_structuralCache
.TextContainer.End);
933
if (textPointer != null && textPointer.TextContainer !=
_structuralCache
.TextContainer)
950
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce && !
_structuralCache
.ForceReformat)
955
if (
_structuralCache
.IsFormattingInProgress)
969
TextPointer childStart = new TextPointer(
_structuralCache
.TextContainer.Start);
976
_structuralCache
.AddDirtyTextRange(dtr);
991
_structuralCache
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
992
_structuralCache
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
993
_structuralCache
.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
1001
_structuralCache
.TextContainer.Changing -= new EventHandler(OnTextContainerChanging);
1002
_structuralCache
.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
1003
_structuralCache
.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
1004
_structuralCache
.IsFormattedOnce = false;
1095
return
_structuralCache
;
1163
return
_structuralCache
.TextContainer;
1250
if (fd.
_structuralCache
!= null && fd.
_structuralCache
.IsFormattedOnce)
1399
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!");
1402
if (
_structuralCache
.IsFormattingInProgress)
1404
_structuralCache
.OnInvalidOperationDetected();
1423
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1440
_structuralCache
.AddDirtyTextRange(dtr);
1452
Invariant.Assert(sender ==
_structuralCache
.TextContainer, "Received text change for foreign TextContainer.");
1453
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!");
1456
if (
_structuralCache
.IsFormattingInProgress)
1458
_structuralCache
.OnInvalidOperationDetected();
1464
_structuralCache
.IsContentChangeInProgress = true;
1478
Invariant.Assert(sender ==
_structuralCache
.TextContainer);
1479
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!");
1491
if (
_structuralCache
.IsFormattingInProgress)
1493
_structuralCache
.OnInvalidOperationDetected();
1513
_structuralCache
.AddDirtyTextRange(dtr);
1518
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1530
_structuralCache
.IsContentChangeInProgress = false;
1665
TextContainer textContainer =
_structuralCache
.TextContainer;
1716
return
_structuralCache
.TextContainer;
1720
return
_structuralCache
.TextContainer as TextContainer;