1 write to _structuralCache
PresentationFramework (1)
System\Windows\Documents\FlowDocument.cs (1)
1226
_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);
841
return new RangeContentEnumerator(
_structuralCache
.TextContainer.Start,
_structuralCache
.TextContainer.End);
925
if (textPointer != null && textPointer.TextContainer !=
_structuralCache
.TextContainer)
942
if (
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce && !
_structuralCache
.ForceReformat)
947
if (
_structuralCache
.IsFormattingInProgress)
961
TextPointer childStart = new TextPointer(
_structuralCache
.TextContainer.Start);
968
_structuralCache
.AddDirtyTextRange(dtr);
983
_structuralCache
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
984
_structuralCache
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
985
_structuralCache
.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
993
_structuralCache
.TextContainer.Changing -= new EventHandler(OnTextContainerChanging);
994
_structuralCache
.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
995
_structuralCache
.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
996
_structuralCache
.IsFormattedOnce = false;
1087
return
_structuralCache
;
1155
return
_structuralCache
.TextContainer;
1242
if (fd.
_structuralCache
!= null && fd.
_structuralCache
.IsFormattedOnce)
1391
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!");
1394
if (
_structuralCache
.IsFormattingInProgress)
1396
_structuralCache
.OnInvalidOperationDetected();
1414
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1431
_structuralCache
.AddDirtyTextRange(dtr);
1443
Invariant.Assert(sender ==
_structuralCache
.TextContainer, "Received text change for foreign TextContainer.");
1444
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!");
1447
if (
_structuralCache
.IsFormattingInProgress)
1449
_structuralCache
.OnInvalidOperationDetected();
1455
_structuralCache
.IsContentChangeInProgress = true;
1469
Invariant.Assert(sender ==
_structuralCache
.TextContainer);
1470
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!");
1482
if (
_structuralCache
.IsFormattingInProgress)
1484
_structuralCache
.OnInvalidOperationDetected();
1504
_structuralCache
.AddDirtyTextRange(dtr);
1509
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1521
_structuralCache
.IsContentChangeInProgress = false;
1653
TextContainer textContainer =
_structuralCache
.TextContainer;
1701
return
_structuralCache
.TextContainer;
1705
return
_structuralCache
.TextContainer as TextContainer;