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)
499
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
600
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
654
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
729
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
784
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
859
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
1093
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);
504
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
519
StructuralCache.
CurrentFormatContext
.PopPageData();
555
int affectedColumn = (uComparisonPoint - StructuralCache.
CurrentFormatContext
.PageMarginRect.u) / duColumnTotal;
556
int columnLeft = StructuralCache.
CurrentFormatContext
.PageMarginRect.u + affectedColumn * duColumnTotal;
589
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth;
593
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
594
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth - pageMargin.Left - pageMargin.Right;
627
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
631
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
632
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));
711
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
726
StructuralCache.
CurrentFormatContext
.PopPageData();
754
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
768
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)
351
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
352
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)
400
if (StructuralCache.
CurrentFormatContext
.FinitePage)
402
elementHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
430
if (StructuralCache.
CurrentFormatContext
.FinitePage)
432
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.DocumentPageMargin;
433
elementHeight = StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
533
if (!StructuralCache.
CurrentFormatContext
.FinitePage && !figure.Height.IsAbsolute)