66 references to StructuralCache
PresentationFramework (66)
MS\Internal\Documents\ContentHostHelper.cs (1)
88
ITextView textView = flowDocument.
StructuralCache
.TextContainer.TextView;
MS\Internal\Documents\DocumentPageTextView.cs (2)
418
BackgroundFormatInfo backgroundFormatInfo = owner.Document.
StructuralCache
.BackgroundFormatInfo;
456
owner.Document.
StructuralCache
.ThrottleBackgroundFormatting();
MS\Internal\Documents\FlowDocumentFormatter.cs (20)
34
_documentPage = new FlowDocumentPage(_document.
StructuralCache
);
57
if (_document.
StructuralCache
.IsFormattingInProgress)
61
if (_document.
StructuralCache
.IsContentChangeInProgress)
67
if (_document.
StructuralCache
.IsFormattedOnce)
72
_document.
StructuralCache
.InvalidateFormatCache(true);
74
if (!_arrangedAfterFormat && (!_document.
StructuralCache
.ForceReformat || !_document.
StructuralCache
.DestroyStructure))
95
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
98
_document.
StructuralCache
.BackgroundFormatInfo.ViewportHeight = constraint.Height;
103
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
116
Invariant.Assert(_document.
StructuralCache
.DtrList == null || _document.
StructuralCache
.DtrList.Length == 0 ||
117
(_document.
StructuralCache
.DtrList.Length == 1 && _document.
StructuralCache
.BackgroundFormatInfo.DoesFinalDTRCoverRestOfText));
127
viewport = new Rect(0, 0, arrangeSize.Width, _document.
StructuralCache
.BackgroundFormatInfo.ViewportHeight);
304
_document.
StructuralCache
.InvalidateFormatCache(true);
362
_document.
StructuralCache
.IsFormattedOnce &&
363
!_document.
StructuralCache
.ForceReformat &&
365
!_document.
StructuralCache
.IsContentChangeInProgress &&
366
!_document.
StructuralCache
.IsFormattingInProgress;
MS\Internal\Documents\FlowDocumentPaginator.cs (20)
77
if (_document.
StructuralCache
.IsFormattingInProgress)
81
if (_document.
StructuralCache
.IsContentChangeInProgress)
150
if (_document.
StructuralCache
.IsFormattingInProgress)
154
if (_document.
StructuralCache
.IsContentChangeInProgress)
162
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
195
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
229
if (flowContentPosition.TextContainer != _document.
StructuralCache
.TextContainer)
286
if (flowContentPosition.TextContainer != _document.
StructuralCache
.TextContainer)
293
if (_document.
StructuralCache
.IsFormattingInProgress)
297
if (_document.
StructuralCache
.IsContentChangeInProgress)
305
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag.
327
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
534
if (_document.
StructuralCache
.IsFormattingInProgress)
536
_document.
StructuralCache
.OnInvalidOperationDetected();
736
page = new FlowDocumentPage(_document.
StructuralCache
);
767
if (_document.
StructuralCache
.IsFormattingInProgress)
773
if (_document.
StructuralCache
.PtsContext.Disposed)
782
_document.
StructuralCache
.IsFormattingInProgress = true; // Set reentrancy flag
825
_document.
StructuralCache
.IsFormattingInProgress = false; // Clear reentrancy flag.
1131
return !_document.
StructuralCache
.IsContentChangeInProgress;
MS\Internal\Documents\FlowDocumentView.cs (2)
695
_textView = new DocumentPageTextView(this, _document.
StructuralCache
.TextContainer);
703
service = Document.
StructuralCache
.TextContainer as TextContainer;
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
203
if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.
StructuralCache
.TextContainer)
219
ITextSelection textSelection = Document.
StructuralCache
.TextContainer.TextSelection;
544
newTextSelection.AnchorPosition.TextContainer == flowDocument.
StructuralCache
.TextContainer)
546
ITextSelection textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
System\Windows\Controls\FlowDocumentReader.cs (1)
1998
TextContainer textContainer = document.
StructuralCache
.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (9)
217
textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
975
Document.
StructuralCache
.TextContainer.TextView = textView;
985
Document.
StructuralCache
.TextContainer.TextSelection == null)
987
_textEditor = new TextEditor(Document.
StructuralCache
.TextContainer, this, false)
1187
newDocument.
StructuralCache
.TextContainer != null &&
1188
newDocument.
StructuralCache
.TextContainer.TextSelection != null)
1208
oldDocument.
StructuralCache
.ClearUpdateInfo(true);
1240
newDocument.
StructuralCache
.ClearUpdateInfo(true);
1924
TextContainer textContainer = document.
StructuralCache
.TextContainer;
System\Windows\Controls\RichTextBox.cs (3)
357
value.
StructuralCache
!= null && value.
StructuralCache
.TextContainer != null &&
358
value.
StructuralCache
.TextContainer.TextSelection != null)
System\Windows\Controls\SinglePageViewer.cs (2)
146
textSelection = flowDocument.
StructuralCache
.TextContainer.TextSelection;
1558
TextContainer textContainer = document.
StructuralCache
.TextContainer;
System\Windows\Documents\FlowDocument.cs (2)
753
if (
StructuralCache
.HasPtsContext())
755
StructuralCache
.TextFormatterHost.PixelsPerDip = _pixelsPerDip;