89 references to CurrentFormatContext
PresentationFramework (89)
MS\Internal\PtsHost\BaseParagraph.cs (1)
224
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.
CurrentFormatContext
.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (12)
106
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate &&
113
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
152
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
347
Debug.Assert(StructuralCache.
CurrentFormatContext
.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
350
if (StructuralCache.
CurrentFormatContext
.FinitePage)
496
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
597
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
651
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
726
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
781
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
856
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
1090
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer) textPointer;
MS\Internal\PtsHost\FigureHelper.cs (10)
84
value = structuralCache.
CurrentFormatContext
.PageWidth * figureLength.Value;
131
value = (structuralCache.
CurrentFormatContext
.PageHeight) * figureLength.Value;
135
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
137
value = (structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value;
175
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight));
179
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
180
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom));
189
value = structuralCache.
CurrentFormatContext
.PageHeight;
231
Size pageSize = structuralCache.
CurrentFormatContext
.PageSize;
232
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
MS\Internal\PtsHost\FigureParagraph.cs (11)
118
Invariant.Assert(StructuralCache.
CurrentFormatContext
.FinitePage);
498
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
513
StructuralCache.
CurrentFormatContext
.PopPageData();
549
int affectedColumn = (uComparisonPoint - StructuralCache.
CurrentFormatContext
.PageMarginRect.u) / duColumnTotal;
550
int columnLeft = StructuralCache.
CurrentFormatContext
.PageMarginRect.u + affectedColumn * duColumnTotal;
583
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth;
587
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
588
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth - pageMargin.Left - pageMargin.Right;
621
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
625
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
626
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParagraph.cs (7)
203
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
205
if (Double.IsInfinity(StructuralCache.
CurrentFormatContext
.PageHeight))
215
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.
CurrentFormatContext
.PageHeight));
705
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
720
StructuralCache.
CurrentFormatContext
.PopPageData();
748
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
762
StructuralCache.
CurrentFormatContext
.PopPageData();
MS\Internal\PtsHost\FlowDocumentPage.cs (6)
143
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, false);
148
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, false);
159
_structuralCache.
CurrentFormatContext
.PopPageData();
206
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, true);
211
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, true);
214
_structuralCache.
CurrentFormatContext
.PopPageData();
MS\Internal\PtsHost\Line.cs (2)
348
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
349
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
MS\Internal\PtsHost\ListParagraph.cs (1)
133
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (2)
225
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
226
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
MS\Internal\PtsHost\PtsPage.cs (1)
744
_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.
CurrentFormatContext
.PageSize));
MS\Internal\PtsHost\Section.cs (8)
109
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
114
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
214
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
216
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
219
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
356
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
358
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
361
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
MS\Internal\PtsHost\SubpageParagraph.cs (12)
162
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
207
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
222
StructuralCache.
CurrentFormatContext
.PopPageData();
280
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
345
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
382
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
396
StructuralCache.
CurrentFormatContext
.PopPageData();
450
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
505
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
540
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
555
StructuralCache.
CurrentFormatContext
.PopPageData();
609
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
MS\Internal\PtsHost\TableParagraph.cs (1)
90
if (suppressTopSpace && (StructuralCache.
CurrentFormatContext
.FinitePage || mcs == null))
MS\Internal\PtsHost\TextParagraph.cs (9)
275
if (StructuralCache.
CurrentFormatContext
.FinitePage)
514
StructuralCache.
CurrentFormatContext
.OnFormatLine();
570
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
698
StructuralCache.
CurrentFormatContext
.OnFormatLine();
751
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
801
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
946
if(textElement is Figure && StructuralCache.
CurrentFormatContext
.FinitePage)
959
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
979
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
397
if (StructuralCache.
CurrentFormatContext
.FinitePage)
399
elementHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
427
if (StructuralCache.
CurrentFormatContext
.FinitePage)
429
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.DocumentPageMargin;
430
elementHeight = StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
530
if (!StructuralCache.
CurrentFormatContext
.FinitePage && !figure.Height.IsAbsolute)