2 writes to _structuralCache
PresentationFramework (2)
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
50
_structuralCache
= structuralCache;
844
_structuralCache
= null;
38 references to _structuralCache
PresentationFramework (38)
MS\Internal\PtsHost\FlowDocumentPage.cs (38)
140
_structuralCache
.InvalidateFormatCache(false);
145
using(
_structuralCache
.SetDocumentFormatContext(this))
151
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, false);
156
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, false);
167
_structuralCache
.CurrentFormatContext.PopPageData();
171
_structuralCache
.DetectInvalidOperation();
195
double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(
_structuralCache
, pageSize.Width - (pageMargin.Left + pageMargin.Right));
208
using(
_structuralCache
.SetDocumentFormatContext(this))
214
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, true);
219
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, true);
222
_structuralCache
.CurrentFormatContext.PopPageData();
225
_structuralCache
.DetectInvalidOperation();
240
using(
_structuralCache
.SetDocumentArrangeContext(this))
243
_structuralCache
.DetectInvalidOperation();
261
_structuralCache
.ForceReformat = true;
281
DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(
_structuralCache
.FormattingOwner);
303
return (ie != null) ? ie :
_structuralCache
.FormattingOwner as IInputElement;
329
int elementStartOffset =
_structuralCache
.TextContainer.Start.GetOffsetToPosition(elementStart);
410
_structuralCache
.FormattingOwner.OnChildDesiredSizeChanged(child);
645
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport);
648
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
653
_structuralCache
.DetectInvalidOperation();
688
internal bool IsDisposed { get { return (_disposed != 0) ||
_structuralCache
.PtsContext.Disposed; } }
722
internal StructuralCache StructuralCache { get { return
_structuralCache
; } }
743
layoutDataValid =
_structuralCache
.FormattingOwner.IsLayoutDataValid;
863
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
867
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
870
_structuralCache
.DetectInvalidOperation();
877
FlowDirection flowdirection = (FlowDirection)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
881
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
884
_structuralCache
.DetectInvalidOperation();
935
Debug.Assert(
_structuralCache
.TextContainer is TextContainer);
942
if ((e as TextElement).TextContainer ==
_structuralCache
.TextContainer)
952
if (!(
_structuralCache
.TextContainer.Start is TextPointer) ||
953
!(
_structuralCache
.TextContainer.End is TextPointer))
959
TextPointer searchPosition = new TextPointer(
_structuralCache
.TextContainer.Start as TextPointer);
960
while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(
_structuralCache
.TextContainer.End) < 0)
1163
_textView = new TextDocumentView(this,
_structuralCache
.TextContainer);