66 references to StructuralCache
PresentationFramework (66)
MS\Internal\Documents\ContentHostHelper.cs (1)
89ITextView textView = flowDocument.StructuralCache.TextContainer.TextView;
MS\Internal\Documents\DocumentPageTextView.cs (2)
419BackgroundFormatInfo backgroundFormatInfo = owner.Document.StructuralCache.BackgroundFormatInfo; 457owner.Document.StructuralCache.ThrottleBackgroundFormatting();
MS\Internal\Documents\FlowDocumentFormatter.cs (20)
35_documentPage = new FlowDocumentPage(_document.StructuralCache); 58if (_document.StructuralCache.IsFormattingInProgress) 62if (_document.StructuralCache.IsContentChangeInProgress) 68if (_document.StructuralCache.IsFormattedOnce) 73_document.StructuralCache.InvalidateFormatCache(true); 75if (!_arrangedAfterFormat && (!_document.StructuralCache.ForceReformat || !_document.StructuralCache.DestroyStructure)) 96_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 99_document.StructuralCache.BackgroundFormatInfo.ViewportHeight = constraint.Height; 104_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 117Invariant.Assert(_document.StructuralCache.DtrList == null || _document.StructuralCache.DtrList.Length == 0 || 118(_document.StructuralCache.DtrList.Length == 1 && _document.StructuralCache.BackgroundFormatInfo.DoesFinalDTRCoverRestOfText)); 128viewport = new Rect(0, 0, arrangeSize.Width, _document.StructuralCache.BackgroundFormatInfo.ViewportHeight); 305_document.StructuralCache.InvalidateFormatCache(true); 363_document.StructuralCache.IsFormattedOnce && 364!_document.StructuralCache.ForceReformat && 366!_document.StructuralCache.IsContentChangeInProgress && 367!_document.StructuralCache.IsFormattingInProgress;
MS\Internal\Documents\FlowDocumentPaginator.cs (20)
78if (_document.StructuralCache.IsFormattingInProgress) 82if (_document.StructuralCache.IsContentChangeInProgress) 151if (_document.StructuralCache.IsFormattingInProgress) 155if (_document.StructuralCache.IsContentChangeInProgress) 163_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 196_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 230if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 287if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 294if (_document.StructuralCache.IsFormattingInProgress) 298if (_document.StructuralCache.IsContentChangeInProgress) 306_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 328_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 535if (_document.StructuralCache.IsFormattingInProgress) 537_document.StructuralCache.OnInvalidOperationDetected(); 737page = new FlowDocumentPage(_document.StructuralCache); 768if (_document.StructuralCache.IsFormattingInProgress) 774if (_document.StructuralCache.PtsContext.Disposed) 783_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag 826_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 1132return !_document.StructuralCache.IsContentChangeInProgress;
MS\Internal\Documents\FlowDocumentView.cs (2)
747_textView = new DocumentPageTextView(this, _document.StructuralCache.TextContainer); 755service = Document.StructuralCache.TextContainer as TextContainer;
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
204if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 220ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 557newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 559ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection;
System\Windows\Controls\FlowDocumentReader.cs (1)
2034TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (9)
218textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 980Document.StructuralCache.TextContainer.TextView = textView; 990Document.StructuralCache.TextContainer.TextSelection == null) 992_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false); 1196newDocument.StructuralCache.TextContainer != null && 1197newDocument.StructuralCache.TextContainer.TextSelection != null) 1217oldDocument.StructuralCache.ClearUpdateInfo(true); 1249newDocument.StructuralCache.ClearUpdateInfo(true); 1961TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\RichTextBox.cs (3)
356value.StructuralCache != null && value.StructuralCache.TextContainer != null && 357value.StructuralCache.TextContainer.TextSelection != null)
System\Windows\Controls\SinglePageViewer.cs (2)
147textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 1560TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Documents\FlowDocument.cs (2)
754if (StructuralCache.HasPtsContext()) 756StructuralCache.TextFormatterHost.PixelsPerDip = _pixelsPerDip;