2 writes to _structuralCache
PresentationFramework (2)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
52
_structuralCache
= structuralCache;
866
_structuralCache
= null;
38 references to _structuralCache
PresentationFramework (38)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (38)
142
_structuralCache
.InvalidateFormatCache(false);
147
using(
_structuralCache
.SetDocumentFormatContext(this))
153
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, false);
158
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, false);
169
_structuralCache
.CurrentFormatContext.PopPageData();
173
_structuralCache
.DetectInvalidOperation();
197
double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(
_structuralCache
, pageSize.Width - (pageMargin.Left + pageMargin.Right));
210
using(
_structuralCache
.SetDocumentFormatContext(this))
216
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, true);
221
_structuralCache
.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, true);
224
_structuralCache
.CurrentFormatContext.PopPageData();
227
_structuralCache
.DetectInvalidOperation();
242
using(
_structuralCache
.SetDocumentArrangeContext(this))
245
_structuralCache
.DetectInvalidOperation();
263
_structuralCache
.ForceReformat = true;
283
DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(
_structuralCache
.FormattingOwner);
305
return (ie != null) ? ie :
_structuralCache
.FormattingOwner as IInputElement;
331
int elementStartOffset =
_structuralCache
.TextContainer.Start.GetOffsetToPosition(elementStart);
412
_structuralCache
.FormattingOwner.OnChildDesiredSizeChanged(child);
666
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport);
669
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
674
_structuralCache
.DetectInvalidOperation();
709
internal bool IsDisposed { get { return (_disposed != 0) ||
_structuralCache
.PtsContext.Disposed; } }
743
internal StructuralCache StructuralCache { get { return
_structuralCache
; } }
764
layoutDataValid =
_structuralCache
.FormattingOwner.IsLayoutDataValid;
885
this.PageVisual.DrawBackground((Brush)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
889
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
892
_structuralCache
.DetectInvalidOperation();
899
FlowDirection flowdirection = (FlowDirection)
_structuralCache
.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
903
using (
_structuralCache
.SetDocumentVisualValidationContext(this))
906
_structuralCache
.DetectInvalidOperation();
957
Debug.Assert(
_structuralCache
.TextContainer is TextContainer);
964
if ((e as TextElement).TextContainer ==
_structuralCache
.TextContainer)
974
if (!(
_structuralCache
.TextContainer.Start is TextPointer) ||
975
!(
_structuralCache
.TextContainer.End is TextPointer))
981
TextPointer searchPosition = new TextPointer(
_structuralCache
.TextContainer.Start as TextPointer);
982
while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(
_structuralCache
.TextContainer.End) < 0)
1188
_textView = new TextDocumentView(this,
_structuralCache
.TextContainer);