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)
175return _structuralCache.TextContainer.Start; 190return _structuralCache.TextContainer.End; 784if (_structuralCache != null && _structuralCache.IsFormattedOnce) 794if (_structuralCache.IsFormattingInProgress) 796_structuralCache.OnInvalidOperationDetected(); 803_structuralCache.InvalidateFormatCache(!affectsRender); 838return new RangeContentEnumerator(_structuralCache.TextContainer.Start, _structuralCache.TextContainer.End); 922if (textPointer != null && textPointer.TextContainer != _structuralCache.TextContainer) 939if (_structuralCache != null && _structuralCache.IsFormattedOnce && !_structuralCache.ForceReformat) 944if (_structuralCache.IsFormattingInProgress) 958TextPointer 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; 1081return _structuralCache; 1149return _structuralCache.TextContainer; 1236if (fd._structuralCache != null && fd._structuralCache.IsFormattedOnce) 1382Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected Highlights.Changed callback before first format!"); 1385if (_structuralCache.IsFormattingInProgress) 1387_structuralCache.OnInvalidOperationDetected(); 1405_structuralCache.InvalidateFormatCache(/*Clear structure*/ false); 1422_structuralCache.AddDirtyTextRange(dtr); 1434Invariant.Assert(sender == _structuralCache.TextContainer, "Received text change for foreign TextContainer."); 1435Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected TextContainer.Changing callback before first format!"); 1438if (_structuralCache.IsFormattingInProgress) 1440_structuralCache.OnInvalidOperationDetected(); 1446_structuralCache.IsContentChangeInProgress = true; 1460Invariant.Assert(sender == _structuralCache.TextContainer); 1461Invariant.Assert(_structuralCache != null && _structuralCache.IsFormattedOnce, "Unexpected TextContainer.Change callback before first format!"); 1473if (_structuralCache.IsFormattingInProgress) 1475_structuralCache.OnInvalidOperationDetected(); 1495_structuralCache.AddDirtyTextRange(dtr); 1500_structuralCache.InvalidateFormatCache(/*Clear structure*/ false); 1509_structuralCache.IsContentChangeInProgress = false; 1641TextContainer textContainer = _structuralCache.TextContainer; 1689return _structuralCache.TextContainer; 1693return _structuralCache.TextContainer as TextContainer;