1 write to _structuralCache
PresentationFramework (1)
System\Windows\Documents\FlowDocument.cs (1)
1220
_structuralCache
= new StructuralCache(this, textContainer);
50 references to _structuralCache
PresentationFramework (50)
System\Windows\Documents\FlowDocument.cs (50)
175
return
_structuralCache
.TextContainer.Start;
190
return
_structuralCache
.TextContainer.End;
784
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce)
794
if (
_structuralCache
.IsFormattingInProgress)
796
_structuralCache
.OnInvalidOperationDetected();
803
_structuralCache
.InvalidateFormatCache(!affectsRender);
838
return new RangeContentEnumerator(
_structuralCache
.TextContainer.Start,
_structuralCache
.TextContainer.End);
922
if (textPointer != null && textPointer.TextContainer !=
_structuralCache
.TextContainer)
939
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce && !
_structuralCache
.ForceReformat)
944
if (
_structuralCache
.IsFormattingInProgress)
958
TextPointer childStart = new TextPointer(
_structuralCache
.TextContainer.Start);
965
_structuralCache
.AddDirtyTextRange(dtr);
977
_structuralCache
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
978
_structuralCache
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
979
_structuralCache
.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
987
_structuralCache
.TextContainer.Changing -= new EventHandler(OnTextContainerChanging);
988
_structuralCache
.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
989
_structuralCache
.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
990
_structuralCache
.IsFormattedOnce = false;
1081
return
_structuralCache
;
1149
return
_structuralCache
.TextContainer;
1236
if (fd.
_structuralCache
!= null && fd.
_structuralCache
.IsFormattedOnce)
1382
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!");
1385
if (
_structuralCache
.IsFormattingInProgress)
1387
_structuralCache
.OnInvalidOperationDetected();
1405
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1422
_structuralCache
.AddDirtyTextRange(dtr);
1434
Invariant.Assert(sender ==
_structuralCache
.TextContainer, "Received text change for foreign TextContainer.");
1435
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!");
1438
if (
_structuralCache
.IsFormattingInProgress)
1440
_structuralCache
.OnInvalidOperationDetected();
1446
_structuralCache
.IsContentChangeInProgress = true;
1460
Invariant.Assert(sender ==
_structuralCache
.TextContainer);
1461
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!");
1473
if (
_structuralCache
.IsFormattingInProgress)
1475
_structuralCache
.OnInvalidOperationDetected();
1495
_structuralCache
.AddDirtyTextRange(dtr);
1500
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1509
_structuralCache
.IsContentChangeInProgress = false;
1641
TextContainer textContainer =
_structuralCache
.TextContainer;
1689
return
_structuralCache
.TextContainer;
1693
return
_structuralCache
.TextContainer as TextContainer;