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