66 references to StructuralCache
PresentationFramework (66)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
94
ITextView textView = flowDocument.
StructuralCache
.TextContainer.TextView;
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
423
BackgroundFormatInfo backgroundFormatInfo = owner.Document.
StructuralCache
.BackgroundFormatInfo;
461
owner.Document.
StructuralCache
.ThrottleBackgroundFormatting();
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (20)
43
_documentPage = new FlowDocumentPage(_document.
StructuralCache
);
66
if (_document.
StructuralCache
.IsFormattingInProgress)
70
if (_document.
StructuralCache
.IsContentChangeInProgress)
76
if (_document.
StructuralCache
.IsFormattedOnce)
81
_document.
StructuralCache
.InvalidateFormatCache(true);
83
if (!_arrangedAfterFormat && (!_document.
StructuralCache
.ForceReformat || !_document.
StructuralCache
.DestroyStructure))
104
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
107
_document.
StructuralCache
.BackgroundFormatInfo.ViewportHeight = constraint.Height;
112
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
125
Invariant.Assert(_document.
StructuralCache
.DtrList == null || _document.
StructuralCache
.DtrList.Length == 0 ||
126
(_document.
StructuralCache
.DtrList.Length == 1 && _document.
StructuralCache
.BackgroundFormatInfo.DoesFinalDTRCoverRestOfText));
136
viewport = new Rect(0, 0, arrangeSize.Width, _document.
StructuralCache
.BackgroundFormatInfo.ViewportHeight);
313
_document.
StructuralCache
.InvalidateFormatCache(true);
371
_document.
StructuralCache
.IsFormattedOnce &&
372
!_document.
StructuralCache
.ForceReformat &&
374
!_document.
StructuralCache
.IsContentChangeInProgress &&
375
!_document.
StructuralCache
.IsFormattingInProgress;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (20)
87
if (_document.
StructuralCache
.IsFormattingInProgress)
91
if (_document.
StructuralCache
.IsContentChangeInProgress)
160
if (_document.
StructuralCache
.IsFormattingInProgress)
164
if (_document.
StructuralCache
.IsContentChangeInProgress)
172
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
205
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
242
if (flowContentPosition.TextContainer != _document.
StructuralCache
.TextContainer)
302
if (flowContentPosition.TextContainer != _document.
StructuralCache
.TextContainer)
309
if (_document.
StructuralCache
.IsFormattingInProgress)
313
if (_document.
StructuralCache
.IsContentChangeInProgress)
321
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
343
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
556
if (_document.
StructuralCache
.IsFormattingInProgress)
558
_document.
StructuralCache
.OnInvalidOperationDetected();
758
page = new FlowDocumentPage(_document.
StructuralCache
);
789
if (_document.
StructuralCache
.IsFormattingInProgress)
795
if (_document.
StructuralCache
.PtsContext.Disposed)
804
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag
847
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
1153
return !_document.
StructuralCache
.IsContentChangeInProgress;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
754
_textView = new DocumentPageTextView(this, _document.
StructuralCache
.TextContainer);
762
service = Document.
StructuralCache
.TextContainer as TextContainer;
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (4)
208
if(textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.
StructuralCache
.TextContainer)
224
ITextSelection textSelection = Document.
StructuralCache
.TextContainer.TextSelection;
561
newTextSelection.AnchorPosition.TextContainer == flowDocument.
StructuralCache
.TextContainer)
563
ITextSelection textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
2045
TextContainer textContainer = document.
StructuralCache
.TextContainer;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (9)
222
textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
991
Document.
StructuralCache
.TextContainer.TextView = textView;
1001
Document.
StructuralCache
.TextContainer.TextSelection == null)
1003
_textEditor = new TextEditor(Document.
StructuralCache
.TextContainer, this, false);
1207
newDocument.
StructuralCache
.TextContainer != null &&
1208
newDocument.
StructuralCache
.TextContainer.TextSelection != null)
1228
oldDocument.
StructuralCache
.ClearUpdateInfo(true);
1260
newDocument.
StructuralCache
.ClearUpdateInfo(true);
1978
TextContainer textContainer = document.
StructuralCache
.TextContainer;
src\Framework\System\Windows\Controls\RichTextBox.cs (3)
371
value.
StructuralCache
!= null && value.
StructuralCache
.TextContainer != null &&
372
value.
StructuralCache
.TextContainer.TextSelection != null)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
152
textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
1570
TextContainer textContainer = document.
StructuralCache
.TextContainer;
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
762
if (
StructuralCache
.HasPtsContext())
764
StructuralCache
.TextFormatterHost.PixelsPerDip = _pixelsPerDip;