125 references to ToTextDpi
PresentationFramework (125)
MS\Internal\PtsHost\CellParaClient.cs (6)
102
_rect.du = TextDpi.
ToTextDpi
(durCellWidth);
103
_rect.dv = TextDpi.
ToTextDpi
(_arrangeHeight);
170
rectCell.du = TextDpi.
ToTextDpi
(subpageSize.Width);
171
rectCell.dv = TextDpi.
ToTextDpi
(subpageSize.Height);
233
fswdir, 0, TextDpi.
ToTextDpi
(width),
281
TextDpi.
ToTextDpi
(width),
MS\Internal\PtsHost\ContainerParaClient.cs (2)
61
_rect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du);
62
_rect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv);
MS\Internal\PtsHost\FigureParaClient.cs (4)
78
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
80
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
83
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
85
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\FigureParagraph.cs (10)
155
int subpageWidth = Math.Max(1, TextDpi.
ToTextDpi
(anchorLimitedWidth) - (mbp.BPLeft + mbp.BPRight));
164
int subpageHeight = Math.Max(1, TextDpi.
ToTextDpi
(anchorLimitedHeight) - (mbp.BPTop + mbp.BPBottom));
235
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
258
dvr = TextDpi.
ToTextDpi
(anchorLimitedHeight) + mbp.MarginTop + mbp.MarginBottom;
366
fsrcFlow.u += TextDpi.
ToTextDpi
(element.HorizontalOffset);
367
fsrcFlow.v += TextDpi.
ToTextDpi
(element.VerticalOffset);
384
int duColumnWidth = TextDpi.
ToTextDpi
(columnWidth);
385
int duGapWidth = TextDpi.
ToTextDpi
(gap);
557
int duColumnTotal = TextDpi.
ToTextDpi
(columnWidth + gap);
560
int columnDU = TextDpi.
ToTextDpi
(columnWidth);
MS\Internal\PtsHost\FloaterParaClient.cs (4)
200
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
202
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
205
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
207
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\FloaterParagraph.cs (4)
218
dvrAvailable = Math.Min(dvrAvailable, TextDpi.
ToTextDpi
(StructuralCache.CurrentFormatContext.PageHeight));
302
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
470
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
658
int durSpecified = TextDpi.
ToTextDpi
(specifiedWidth);
MS\Internal\PtsHost\Line.cs (15)
104
dvrSuppressible = Math.Max(0, TextDpi.
ToTextDpi
(_line.OverhangAfter));
127
dur = TextDpi.
ToTextDpi
(distance);
804
return TextDpi.
ToTextDpi
(_line.Start) + TextDpi.
ToTextDpi
(_indent) + CalculateUOffsetShift();
818
width = TextDpi.
ToTextDpi
(_line.WidthIncludingTrailingWhitespace) - TextDpi.
ToTextDpi
(_indent);
822
width = TextDpi.
ToTextDpi
(_line.Width) - TextDpi.
ToTextDpi
(_indent);
836
return TextDpi.
ToTextDpi
(_line.Height);
847
return TextDpi.
ToTextDpi
(_line.Baseline);
1104
width = TextDpi.
ToTextDpi
(_line.WidthIncludingTrailingWhitespace);
1105
trailingSpacesDelta = TextDpi.
ToTextDpi
(_line.Width) - width;
1110
width = TextDpi.
ToTextDpi
(_line.Width);
1120
if (width > TextDpi.
ToTextDpi
(_wrappingWidth))
1122
widthDelta = width - TextDpi.
ToTextDpi
(_wrappingWidth);
MS\Internal\PtsHost\MbpInfo.cs (28)
174
get { return TextDpi.
ToTextDpi
(_margin.Left) + TextDpi.
ToTextDpi
(_border.Left) + TextDpi.
ToTextDpi
(_padding.Left); }
182
get { return TextDpi.
ToTextDpi
(_margin.Right) + TextDpi.
ToTextDpi
(_border.Right) + TextDpi.
ToTextDpi
(_padding.Right); }
190
get { return TextDpi.
ToTextDpi
(_margin.Top) + TextDpi.
ToTextDpi
(_border.Top) + TextDpi.
ToTextDpi
(_padding.Top); }
198
get { return TextDpi.
ToTextDpi
(_margin.Bottom) + TextDpi.
ToTextDpi
(_border.Bottom) + TextDpi.
ToTextDpi
(_padding.Bottom); }
206
get { return TextDpi.
ToTextDpi
(_border.Left) + TextDpi.
ToTextDpi
(_padding.Left); }
214
get { return TextDpi.
ToTextDpi
(_border.Right) + TextDpi.
ToTextDpi
(_padding.Right); }
222
get { return TextDpi.
ToTextDpi
(_border.Top) + TextDpi.
ToTextDpi
(_padding.Top); }
230
get { return TextDpi.
ToTextDpi
(_border.Bottom) + TextDpi.
ToTextDpi
(_padding.Bottom); }
238
get { return TextDpi.
ToTextDpi
(_border.Left); }
246
get { return TextDpi.
ToTextDpi
(_border.Right); }
254
get { return TextDpi.
ToTextDpi
(_border.Top); }
262
get { return TextDpi.
ToTextDpi
(_border.Bottom); }
270
get { return TextDpi.
ToTextDpi
(_margin.Left); }
278
get { return TextDpi.
ToTextDpi
(_margin.Right); }
286
get { return TextDpi.
ToTextDpi
(_margin.Top); }
294
get { return TextDpi.
ToTextDpi
(_margin.Bottom); }
MS\Internal\PtsHost\Pts.cs (4)
867
u = TextDpi.
ToTextDpi
(rect.Left);
868
v = TextDpi.
ToTextDpi
(rect.Top);
869
du = TextDpi.
ToTextDpi
(rect.Width);
870
dv = TextDpi.
ToTextDpi
(rect.Height);
MS\Internal\PtsHost\PtsCache.cs (1)
512
contextInfo.drMinColumnBalancingStep = TextDpi.
ToTextDpi
(10.0); // Assume 10px as minimal step
MS\Internal\PtsHost\PtsHelper.cs (8)
920
pfscolinfo[i].durBefore = TextDpi.
ToTextDpi
((i == 0) ? 0 : gap);
921
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(columnWidth);
935
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
((i == cColumns - 1) ? columnWidth + freeSpace : columnWidth);
939
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
((i == 0) ? columnWidth + freeSpace : columnWidth);
943
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(columnWidth + (freeSpace / cColumns));
948
if (pfscolinfo[i].durWidth > TextDpi.
ToTextDpi
(pageWidth))
950
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(pageWidth);
953
pfscolinfo[i].durBefore = TextDpi.
ToTextDpi
((i == 0) ? 0 : gap);
MS\Internal\PtsHost\PtsHost.cs (4)
1560
int dvrAscent = TextDpi.
ToTextDpi
(textBreakpoint.Baseline);
2527
dvrSumHeight = TextDpi.
ToTextDpi
(uiElement.DesiredSize.Height);
2528
dvrMinHeight = TextDpi.
ToTextDpi
(uiElement.DesiredSize.Height);
4151
dvrMinStep = TextDpi.
ToTextDpi
(1);
MS\Internal\PtsHost\RowParagraph.cs (3)
135
int cellSpacing = TextDpi.
ToTextDpi
(Table.InternalCellSpacing);
204
durBBox = TextDpi.
ToTextDpi
(cellParaClient.TableParaClient.TableDesiredWidth);
335
dvrAboveBelow = TextDpi.
ToTextDpi
(Table.InternalCellSpacing / 2.0);
MS\Internal\PtsHost\Section.cs (6)
110
durPage = TextDpi.
ToTextDpi
(pageSize.Width);
111
dvrPage = TextDpi.
ToTextDpi
(pageSize.Height);
116
fsrcMargin.u = TextDpi.
ToTextDpi
(pageMargin.Left);
117
fsrcMargin.v = TextDpi.
ToTextDpi
(pageMargin.Top);
118
fsrcMargin.du = durPage - TextDpi.
ToTextDpi
(pageMargin.Left + pageMargin.Right);
119
fsrcMargin.dv = dvrPage - TextDpi.
ToTextDpi
(pageMargin.Top + pageMargin.Bottom);
MS\Internal\PtsHost\SubpageParaClient.cs (4)
92
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
94
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
97
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
99
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\TableParaClient.cs (8)
99
int vrRowTop = GetTableOffsetFirstRowTop() + TextDpi.
ToTextDpi
(Table.InternalCellSpacing) / 2;
145
cellParaClient.Arrange(TextDpi.
ToTextDpi
(urCellOffset), vrRowTop, _rect, ThisFlowDirection, _pageContext);
607
int u = TextDpi.
ToTextDpi
(point.X);
608
int v = TextDpi.
ToTextDpi
(point.Y);
951
int suggestedU = TextDpi.
ToTextDpi
(suggestedX);
1032
int suggestedU = TextDpi.
ToTextDpi
(suggestedX);
1176
durTableWidth = TextDpi.
ToTextDpi
(tableWidth);
1201
durTableWidth = TextDpi.
ToTextDpi
(tableWidth);
MS\Internal\PtsHost\TextParaClient.cs (1)
970
int urDistance = TextDpi.
ToTextDpi
(distance);
MS\Internal\PtsHost\TextParagraph.cs (3)
292
if (vrCur < TextDpi.
ToTextDpi
(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight))
870
dvr = TextDpi.
ToTextDpi
(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, _lineProperties.DefaultTextRunProperties.FontRenderingEmSize));
1122
int calculatedLineAdvance = TextDpi.
ToTextDpi
(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance)));
MS\Internal\PtsHost\UIElementParaClient.cs (2)
76
_rect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du);
77
_rect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv);
MS\Internal\PtsHost\UIElementParagraph.cs (2)
411
fsbbox.fsrc.dv = TextDpi.
ToTextDpi
(elementHeight) + mbp.BPTop + mbp.BPBottom;
438
fsbbox.fsrc.dv = TextDpi.
ToTextDpi
(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
MS\Internal\Text\TextDpi.cs (6)
72
fspoint.u =
ToTextDpi
(point.X);
73
fspoint.v =
ToTextDpi
(point.Y);
83
fsvector.du =
ToTextDpi
(size.Width);
84
fsvector.dv =
ToTextDpi
(size.Height);
117
size = new Size(FromTextDpi(
ToTextDpi
(size.Width)), FromTextDpi(
ToTextDpi
(size.Height)));