89 references to CurrentFormatContext
PresentationFramework (89)
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (1)
230fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (12)
128if (StructuralCache.CurrentFormatContext.IncrementalUpdate && 135if (!StructuralCache.CurrentFormatContext.FinitePage) 174if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 370Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 373if (StructuralCache.CurrentFormatContext.FinitePage) 531PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 632PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 693PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 768PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 830PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 905PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1139StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (10)
97value = structuralCache.CurrentFormatContext.PageWidth * figureLength.Value; 144value = (structuralCache.CurrentFormatContext.PageHeight) * figureLength.Value; 148Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 150value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 188value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 192Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 193value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 202value = structuralCache.CurrentFormatContext.PageHeight; 244Size pageSize = structuralCache.CurrentFormatContext.PageSize; 245Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (11)
139Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 535StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 550StructuralCache.CurrentFormatContext.PopPageData(); 586int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 587int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 620maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 624Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 625maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 658maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 662Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 663maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (7)
218if (!StructuralCache.CurrentFormatContext.FinitePage) 220if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 230dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 737StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 752StructuralCache.CurrentFormatContext.PopPageData(); 787StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 801StructuralCache.CurrentFormatContext.PopPageData();
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
153_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, false); 158_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, false); 169_structuralCache.CurrentFormatContext.PopPageData(); 216_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, true); 221_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, true); 224_structuralCache.CurrentFormatContext.PopPageData();
src\Framework\MS\Internal\PtsHost\Line.cs (2)
368double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 369if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
151StructuralCache.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (2)
244double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 245if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
817_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.CurrentFormatContext.PageSize));
src\Framework\MS\Internal\PtsHost\Section.cs (8)
115Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 120Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 225Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 227Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 230bool enableColumns = _structuralCache.CurrentFormatContext.FinitePage; 373Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 375Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 378bool enableColumns = _structuralCache.CurrentFormatContext.FinitePage;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (12)
190PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 235StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 250StructuralCache.CurrentFormatContext.PopPageData(); 308PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 385PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 422StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 436StructuralCache.CurrentFormatContext.PopPageData(); 490PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 554PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 589StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 604StructuralCache.CurrentFormatContext.PopPageData(); 658PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect;
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
106if (suppressTopSpace && (StructuralCache.CurrentFormatContext.FinitePage || mcs == null))
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (9)
299if (StructuralCache.CurrentFormatContext.FinitePage) 538StructuralCache.CurrentFormatContext.OnFormatLine(); 596StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 724StructuralCache.CurrentFormatContext.OnFormatLine(); 781StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 831if (!StructuralCache.CurrentFormatContext.FinitePage) 977if(textElement is Figure && StructuralCache.CurrentFormatContext.FinitePage) 993if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 1016if (StructuralCache.CurrentFormatContext.IncrementalUpdate)
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (6)
395if (StructuralCache.CurrentFormatContext.FinitePage) 397elementHeight = StructuralCache.CurrentFormatContext.PageHeight; 423if (StructuralCache.CurrentFormatContext.FinitePage) 425Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin; 426elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 524if (!StructuralCache.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)