89 references to CurrentFormatContext
PresentationFramework (89)
MS\Internal\PtsHost\BaseParagraph.cs (1)
223
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.
CurrentFormatContext
.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (12)
105
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate &&
112
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
151
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
346
Debug.Assert(StructuralCache.
CurrentFormatContext
.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
349
if (StructuralCache.
CurrentFormatContext
.FinitePage)
495
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
596
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
650
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
725
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
780
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
855
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
1089
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer) textPointer;
MS\Internal\PtsHost\FigureHelper.cs (10)
83
value = structuralCache.
CurrentFormatContext
.PageWidth * figureLength.Value;
130
value = (structuralCache.
CurrentFormatContext
.PageHeight) * figureLength.Value;
134
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
136
value = (structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value;
174
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight));
178
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
179
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom));
188
value = structuralCache.
CurrentFormatContext
.PageHeight;
230
Size pageSize = structuralCache.
CurrentFormatContext
.PageSize;
231
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
MS\Internal\PtsHost\FigureParagraph.cs (11)
117
Invariant.Assert(StructuralCache.
CurrentFormatContext
.FinitePage);
497
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
512
StructuralCache.
CurrentFormatContext
.PopPageData();
548
int affectedColumn = (uComparisonPoint - StructuralCache.
CurrentFormatContext
.PageMarginRect.u) / duColumnTotal;
549
int columnLeft = StructuralCache.
CurrentFormatContext
.PageMarginRect.u + affectedColumn * duColumnTotal;
582
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth;
586
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
587
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth - pageMargin.Left - pageMargin.Right;
620
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
624
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
625
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParagraph.cs (7)
202
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
204
if (Double.IsInfinity(StructuralCache.
CurrentFormatContext
.PageHeight))
214
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.
CurrentFormatContext
.PageHeight));
704
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
719
StructuralCache.
CurrentFormatContext
.PopPageData();
747
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
761
StructuralCache.
CurrentFormatContext
.PopPageData();
MS\Internal\PtsHost\FlowDocumentPage.cs (6)
142
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, false);
147
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, false);
158
_structuralCache.
CurrentFormatContext
.PopPageData();
205
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, true);
210
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, true);
213
_structuralCache.
CurrentFormatContext
.PopPageData();
MS\Internal\PtsHost\Line.cs (2)
347
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
348
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
MS\Internal\PtsHost\ListParagraph.cs (1)
132
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (2)
224
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
225
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
MS\Internal\PtsHost\PtsPage.cs (1)
743
_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.
CurrentFormatContext
.PageSize));
MS\Internal\PtsHost\Section.cs (8)
108
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
113
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
213
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
215
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
218
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
355
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
357
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
360
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
MS\Internal\PtsHost\SubpageParagraph.cs (12)
161
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
206
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
221
StructuralCache.
CurrentFormatContext
.PopPageData();
279
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
344
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
381
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
395
StructuralCache.
CurrentFormatContext
.PopPageData();
449
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
504
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
539
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
554
StructuralCache.
CurrentFormatContext
.PopPageData();
608
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
MS\Internal\PtsHost\TableParagraph.cs (1)
89
if (suppressTopSpace && (StructuralCache.
CurrentFormatContext
.FinitePage || mcs == null))
MS\Internal\PtsHost\TextParagraph.cs (9)
274
if (StructuralCache.
CurrentFormatContext
.FinitePage)
513
StructuralCache.
CurrentFormatContext
.OnFormatLine();
569
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
697
StructuralCache.
CurrentFormatContext
.OnFormatLine();
750
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
800
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
945
if(textElement is Figure && StructuralCache.
CurrentFormatContext
.FinitePage)
958
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
978
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
396
if (StructuralCache.
CurrentFormatContext
.FinitePage)
398
elementHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
426
if (StructuralCache.
CurrentFormatContext
.FinitePage)
428
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.DocumentPageMargin;
429
elementHeight = StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
529
if (!StructuralCache.
CurrentFormatContext
.FinitePage && !figure.Height.IsAbsolute)