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)
119
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate &&
126
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
165
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
360
Debug.Assert(StructuralCache.
CurrentFormatContext
.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
363
if (StructuralCache.
CurrentFormatContext
.FinitePage)
514
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
615
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
669
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
744
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
799
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
874
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
1108
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer) textPointer;
MS\Internal\PtsHost\FigureHelper.cs (10)
92
value = structuralCache.
CurrentFormatContext
.PageWidth * figureLength.Value;
139
value = (structuralCache.
CurrentFormatContext
.PageHeight) * figureLength.Value;
143
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
145
value = (structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value;
183
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight));
187
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
188
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom));
197
value = structuralCache.
CurrentFormatContext
.PageHeight;
239
Size pageSize = structuralCache.
CurrentFormatContext
.PageSize;
240
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
MS\Internal\PtsHost\FigureParagraph.cs (11)
123
Invariant.Assert(StructuralCache.
CurrentFormatContext
.FinitePage);
507
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
522
StructuralCache.
CurrentFormatContext
.PopPageData();
558
int affectedColumn = (uComparisonPoint - StructuralCache.
CurrentFormatContext
.PageMarginRect.u) / duColumnTotal;
559
int columnLeft = StructuralCache.
CurrentFormatContext
.PageMarginRect.u + affectedColumn * duColumnTotal;
592
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth;
596
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
597
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth - pageMargin.Left - pageMargin.Right;
630
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
634
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
635
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParagraph.cs (7)
206
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
208
if (Double.IsInfinity(StructuralCache.
CurrentFormatContext
.PageHeight))
218
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.
CurrentFormatContext
.PageHeight));
710
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
725
StructuralCache.
CurrentFormatContext
.PopPageData();
753
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
767
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)
359
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
360
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
MS\Internal\PtsHost\ListParagraph.cs (1)
142
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (2)
233
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
234
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)
172
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
217
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
232
StructuralCache.
CurrentFormatContext
.PopPageData();
290
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
355
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
392
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
406
StructuralCache.
CurrentFormatContext
.PopPageData();
460
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
515
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
550
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
565
StructuralCache.
CurrentFormatContext
.PopPageData();
619
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
MS\Internal\PtsHost\TableParagraph.cs (1)
94
if (suppressTopSpace && (StructuralCache.
CurrentFormatContext
.FinitePage || mcs == null))
MS\Internal\PtsHost\TextParagraph.cs (9)
286
if (StructuralCache.
CurrentFormatContext
.FinitePage)
525
StructuralCache.
CurrentFormatContext
.OnFormatLine();
583
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
711
StructuralCache.
CurrentFormatContext
.OnFormatLine();
767
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
817
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
962
if(textElement is Figure && StructuralCache.
CurrentFormatContext
.FinitePage)
978
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
1001
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
393
if (StructuralCache.
CurrentFormatContext
.FinitePage)
395
elementHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
421
if (StructuralCache.
CurrentFormatContext
.FinitePage)
423
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.DocumentPageMargin;
424
elementHeight = StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
522
if (!StructuralCache.
CurrentFormatContext
.FinitePage && !figure.Height.IsAbsolute)