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;
1232
if (fd.
_structuralCache
!= null && fd.
_structuralCache
.IsFormattedOnce)
1378
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!");
1381
if (
_structuralCache
.IsFormattingInProgress)
1383
_structuralCache
.OnInvalidOperationDetected();
1401
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1418
_structuralCache
.AddDirtyTextRange(dtr);
1430
Invariant.Assert(sender ==
_structuralCache
.TextContainer, "Received text change for foreign TextContainer.");
1431
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!");
1434
if (
_structuralCache
.IsFormattingInProgress)
1436
_structuralCache
.OnInvalidOperationDetected();
1442
_structuralCache
.IsContentChangeInProgress = true;
1456
Invariant.Assert(sender ==
_structuralCache
.TextContainer);
1457
Invariant.Assert(
_structuralCache
!= null &&
_structuralCache
.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!");
1469
if (
_structuralCache
.IsFormattingInProgress)
1471
_structuralCache
.OnInvalidOperationDetected();
1491
_structuralCache
.AddDirtyTextRange(dtr);
1496
_structuralCache
.InvalidateFormatCache(/*Clear structure*/ false);
1505
_structuralCache
.IsContentChangeInProgress = false;
1637
TextContainer textContainer =
_structuralCache
.TextContainer;
1685
return
_structuralCache
.TextContainer;
1689
return
_structuralCache
.TextContainer as TextContainer;