1 write to _structuralCache
PresentationFramework (1)
System\Windows\Documents\FlowDocument.cs (1)
1219
_structuralCache
= new StructuralCache(this, textContainer);
50 references to _structuralCache
PresentationFramework (50)
System\Windows\Documents\FlowDocument.cs (50)
174
return
_structuralCache
.TextContainer.Start;
189
return
_structuralCache
.TextContainer.End;
783
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce)
793
if (
_structuralCache
.IsFormattingInProgress)
795
_structuralCache
.OnInvalidOperationDetected();
802
_structuralCache
.InvalidateFormatCache(!affectsRender);
837
return new RangeContentEnumerator(
_structuralCache
.TextContainer.Start,
_structuralCache
.TextContainer.End);
921
if (textPointer != null && textPointer.TextContainer !=
_structuralCache
.TextContainer)
938
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce && !
_structuralCache
.ForceReformat)
943
if (
_structuralCache
.IsFormattingInProgress)
957
TextPointer childStart = new TextPointer(
_structuralCache
.TextContainer.Start);
964
_structuralCache
.AddDirtyTextRange(dtr);
976
_structuralCache
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
977
_structuralCache
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
978
_structuralCache
.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
986
_structuralCache
.TextContainer.Changing -= new EventHandler(OnTextContainerChanging);
987
_structuralCache
.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
988
_structuralCache
.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
989
_structuralCache
.IsFormattedOnce = false;
1080
return
_structuralCache
;
1148
return
_structuralCache
.TextContainer;
1235
if (fd.
_structuralCache
!= null && fd.
_structuralCache
.IsFormattedOnce)
1381
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!");
1384
if (
_structuralCache
.IsFormattingInProgress)
1386
_structuralCache
.OnInvalidOperationDetected();
1404
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1421
_structuralCache
.AddDirtyTextRange(dtr);
1433
Invariant.Assert(sender ==
_structuralCache
.TextContainer, "Received text change for foreign TextContainer.");
1434
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!");
1437
if (
_structuralCache
.IsFormattingInProgress)
1439
_structuralCache
.OnInvalidOperationDetected();
1445
_structuralCache
.IsContentChangeInProgress = true;
1459
Invariant.Assert(sender ==
_structuralCache
.TextContainer);
1460
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!");
1472
if (
_structuralCache
.IsFormattingInProgress)
1474
_structuralCache
.OnInvalidOperationDetected();
1494
_structuralCache
.AddDirtyTextRange(dtr);
1499
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1508
_structuralCache
.IsContentChangeInProgress = false;
1640
TextContainer textContainer =
_structuralCache
.TextContainer;
1688
return
_structuralCache
.TextContainer;
1692
return
_structuralCache
.TextContainer as TextContainer;