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); 145using(_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(); 195double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 208using(_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(); 240using(_structuralCache.SetDocumentArrangeContext(this)) 243_structuralCache.DetectInvalidOperation(); 261_structuralCache.ForceReformat = true; 281DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner); 303return (ie != null) ? ie : _structuralCache.FormattingOwner as IInputElement; 329int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 410_structuralCache.FormattingOwner.OnChildDesiredSizeChanged(child); 645this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 648using (_structuralCache.SetDocumentVisualValidationContext(this)) 653_structuralCache.DetectInvalidOperation(); 688internal bool IsDisposed { get { return (_disposed != 0) || _structuralCache.PtsContext.Disposed; } } 722internal StructuralCache StructuralCache { get { return _structuralCache; } } 743layoutDataValid = _structuralCache.FormattingOwner.IsLayoutDataValid; 863this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize)); 867using (_structuralCache.SetDocumentVisualValidationContext(this)) 870_structuralCache.DetectInvalidOperation(); 877FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 881using (_structuralCache.SetDocumentVisualValidationContext(this)) 884_structuralCache.DetectInvalidOperation(); 935Debug.Assert(_structuralCache.TextContainer is TextContainer); 942if ((e as TextElement).TextContainer == _structuralCache.TextContainer) 952if (!(_structuralCache.TextContainer.Start is TextPointer) || 953!(_structuralCache.TextContainer.End is TextPointer)) 959TextPointer searchPosition = new TextPointer(_structuralCache.TextContainer.Start as TextPointer); 960while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 1163_textView = new TextDocumentView(this, _structuralCache.TextContainer);