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)
175return _structuralCache.TextContainer.Start; 190return _structuralCache.TextContainer.End; 784if (_structuralCache != null && _structuralCache.IsFormattedOnce) 794if (_structuralCache.IsFormattingInProgress) 796_structuralCache.OnInvalidOperationDetected(); 803_structuralCache.InvalidateFormatCache(!affectsRender); 841return new RangeContentEnumerator(_structuralCache.TextContainer.Start, _structuralCache.TextContainer.End); 925if (textPointer != null && textPointer.TextContainer != _structuralCache.TextContainer) 942if (_structuralCache != null && _structuralCache.IsFormattedOnce && !_structuralCache.ForceReformat) 947if (_structuralCache.IsFormattingInProgress) 961TextPointer 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; 1087return _structuralCache; 1155return _structuralCache.TextContainer; 1242if (fd._structuralCache != null && fd._structuralCache.IsFormattedOnce) 1391Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!"); 1394if (_structuralCache.IsFormattingInProgress) 1396_structuralCache.OnInvalidOperationDetected(); 1414_structuralCache.InvalidateFormatCache(/*Clear structure*/ false); 1431_structuralCache.AddDirtyTextRange(dtr); 1443Invariant.Assert(sender == _structuralCache.TextContainer, "Received text change for foreign TextContainer."); 1444Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!"); 1447if (_structuralCache.IsFormattingInProgress) 1449_structuralCache.OnInvalidOperationDetected(); 1455_structuralCache.IsContentChangeInProgress = true; 1469Invariant.Assert(sender == _structuralCache.TextContainer); 1470Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!"); 1482if (_structuralCache.IsFormattingInProgress) 1484_structuralCache.OnInvalidOperationDetected(); 1504_structuralCache.AddDirtyTextRange(dtr); 1509_structuralCache.InvalidateFormatCache(/*Clear structure*/ false); 1521_structuralCache.IsContentChangeInProgress = false; 1653TextContainer textContainer = _structuralCache.TextContainer; 1701return _structuralCache.TextContainer; 1705return _structuralCache.TextContainer as TextContainer;