66 references to StructuralCache
PresentationFramework (66)
MS\Internal\Documents\ContentHostHelper.cs (1)
92ITextView textView = flowDocument.StructuralCache.TextContainer.TextView;
MS\Internal\Documents\DocumentPageTextView.cs (2)
421BackgroundFormatInfo backgroundFormatInfo = owner.Document.StructuralCache.BackgroundFormatInfo; 459owner.Document.StructuralCache.ThrottleBackgroundFormatting();
MS\Internal\Documents\FlowDocumentFormatter.cs (20)
38_documentPage = new FlowDocumentPage(_document.StructuralCache); 61if (_document.StructuralCache.IsFormattingInProgress) 65if (_document.StructuralCache.IsContentChangeInProgress) 71if (_document.StructuralCache.IsFormattedOnce) 76_document.StructuralCache.InvalidateFormatCache(true); 78if (!_arrangedAfterFormat && (!_document.StructuralCache.ForceReformat || !_document.StructuralCache.DestroyStructure)) 99_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 102_document.StructuralCache.BackgroundFormatInfo.ViewportHeight = constraint.Height; 107_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 120Invariant.Assert(_document.StructuralCache.DtrList == null || _document.StructuralCache.DtrList.Length == 0 || 121(_document.StructuralCache.DtrList.Length == 1 && _document.StructuralCache.BackgroundFormatInfo.DoesFinalDTRCoverRestOfText)); 131viewport = new Rect(0, 0, arrangeSize.Width, _document.StructuralCache.BackgroundFormatInfo.ViewportHeight); 308_document.StructuralCache.InvalidateFormatCache(true); 366_document.StructuralCache.IsFormattedOnce && 367!_document.StructuralCache.ForceReformat && 369!_document.StructuralCache.IsContentChangeInProgress && 370!_document.StructuralCache.IsFormattingInProgress;
MS\Internal\Documents\FlowDocumentPaginator.cs (20)
82if (_document.StructuralCache.IsFormattingInProgress) 86if (_document.StructuralCache.IsContentChangeInProgress) 155if (_document.StructuralCache.IsFormattingInProgress) 159if (_document.StructuralCache.IsContentChangeInProgress) 167_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 200_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 234if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 291if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 298if (_document.StructuralCache.IsFormattingInProgress) 302if (_document.StructuralCache.IsContentChangeInProgress) 310_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag. 332_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 539if (_document.StructuralCache.IsFormattingInProgress) 541_document.StructuralCache.OnInvalidOperationDetected(); 741page = new FlowDocumentPage(_document.StructuralCache); 772if (_document.StructuralCache.IsFormattingInProgress) 778if (_document.StructuralCache.PtsContext.Disposed) 787_document.StructuralCache.IsFormattingInProgress = true; // Set reentrancy flag 830_document.StructuralCache.IsFormattingInProgress = false; // Clear reentrancy flag. 1136return !_document.StructuralCache.IsContentChangeInProgress;
MS\Internal\Documents\FlowDocumentView.cs (2)
749_textView = new DocumentPageTextView(this, _document.StructuralCache.TextContainer); 757service = Document.StructuralCache.TextContainer as TextContainer;
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
207if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 223ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 560newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 562ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection;
System\Windows\Controls\FlowDocumentReader.cs (1)
2039TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (9)
221textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 983Document.StructuralCache.TextContainer.TextView = textView; 993Document.StructuralCache.TextContainer.TextSelection == null) 995_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false); 1199newDocument.StructuralCache.TextContainer != null && 1200newDocument.StructuralCache.TextContainer.TextSelection != null) 1220oldDocument.StructuralCache.ClearUpdateInfo(true); 1252newDocument.StructuralCache.ClearUpdateInfo(true); 1964TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\RichTextBox.cs (3)
360value.StructuralCache != null && value.StructuralCache.TextContainer != null && 361value.StructuralCache.TextContainer.TextSelection != null)
System\Windows\Controls\SinglePageViewer.cs (2)
150textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 1563TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Documents\FlowDocument.cs (2)
754if (StructuralCache.HasPtsContext()) 756StructuralCache.TextFormatterHost.PixelsPerDip = _pixelsPerDip;