2 writes to _structuralCache
PresentationFramework (2)
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
42
_structuralCache
= structuralCache;
836
_structuralCache
= null;
38 references to _structuralCache
PresentationFramework (38)
MS\Internal\PtsHost\FlowDocumentPage.cs (38)
132
_structuralCache
.InvalidateFormatCache(false);
137
using(
_structuralCache
.SetDocumentFormatContext(this))
143
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, false);
148
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, false);
159
_structuralCache
.CurrentFormatContext.PopPageData();
163
_structuralCache
.DetectInvalidOperation();
187
double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(
_structuralCache
, pageSize.Width - (pageMargin.Left + pageMargin.Right));
200
using(
_structuralCache
.SetDocumentFormatContext(this))
206
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, true);
211
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, true);
214
_structuralCache
.CurrentFormatContext.PopPageData();
217
_structuralCache
.DetectInvalidOperation();
232
using(
_structuralCache
.SetDocumentArrangeContext(this))
235
_structuralCache
.DetectInvalidOperation();
253
_structuralCache
.ForceReformat = true;
273
DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(
_structuralCache
.FormattingOwner);
295
return ie ??
_structuralCache
.FormattingOwner as IInputElement;
321
int elementStartOffset =
_structuralCache
.TextContainer.Start.GetOffsetToPosition(elementStart);
402
_structuralCache
.FormattingOwner.OnChildDesiredSizeChanged(child);
637
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport);
640
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
645
_structuralCache
.DetectInvalidOperation();
680
internal bool IsDisposed { get { return (_disposed != 0) ||
_structuralCache
.PtsContext.Disposed; } }
714
internal StructuralCache StructuralCache { get { return
_structuralCache
; } }
735
layoutDataValid =
_structuralCache
.FormattingOwner.IsLayoutDataValid;
855
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
859
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
862
_structuralCache
.DetectInvalidOperation();
869
FlowDirection flowdirection = (FlowDirection)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
873
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
876
_structuralCache
.DetectInvalidOperation();
927
Debug.Assert(
_structuralCache
.TextContainer is TextContainer);
934
if ((e as TextElement).TextContainer ==
_structuralCache
.TextContainer)
944
if (!(
_structuralCache
.TextContainer.Start is TextPointer) ||
945
!(
_structuralCache
.TextContainer.End is TextPointer))
951
TextPointer searchPosition = new TextPointer(
_structuralCache
.TextContainer.Start as TextPointer);
952
while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(
_structuralCache
.TextContainer.End) < 0)
1155
_textView = new TextDocumentView(this,
_structuralCache
.TextContainer);