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); 137using(_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(); 187double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 200using(_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(); 232using(_structuralCache.SetDocumentArrangeContext(this)) 235_structuralCache.DetectInvalidOperation(); 253_structuralCache.ForceReformat = true; 273DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner); 295return ie ?? _structuralCache.FormattingOwner as IInputElement; 321int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 402_structuralCache.FormattingOwner.OnChildDesiredSizeChanged(child); 637this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 640using (_structuralCache.SetDocumentVisualValidationContext(this)) 645_structuralCache.DetectInvalidOperation(); 680internal bool IsDisposed { get { return (_disposed != 0) || _structuralCache.PtsContext.Disposed; } } 714internal StructuralCache StructuralCache { get { return _structuralCache; } } 735layoutDataValid = _structuralCache.FormattingOwner.IsLayoutDataValid; 855this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize)); 859using (_structuralCache.SetDocumentVisualValidationContext(this)) 862_structuralCache.DetectInvalidOperation(); 869FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 873using (_structuralCache.SetDocumentVisualValidationContext(this)) 876_structuralCache.DetectInvalidOperation(); 927Debug.Assert(_structuralCache.TextContainer is TextContainer); 934if ((e as TextElement).TextContainer == _structuralCache.TextContainer) 944if (!(_structuralCache.TextContainer.Start is TextPointer) || 945!(_structuralCache.TextContainer.End is TextPointer)) 951TextPointer searchPosition = new TextPointer(_structuralCache.TextContainer.Start as TextPointer); 952while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 1155_textView = new TextDocumentView(this, _structuralCache.TextContainer);