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