125 references to ToTextDpi
PresentationFramework (125)
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (6)
119
_rect.du = TextDpi.
ToTextDpi
(durCellWidth);
120
_rect.dv = TextDpi.
ToTextDpi
(_arrangeHeight);
192
rectCell.du = TextDpi.
ToTextDpi
(subpageSize.Width);
193
rectCell.dv = TextDpi.
ToTextDpi
(subpageSize.Height);
260
fswdir, 0, TextDpi.
ToTextDpi
(width),
313
TextDpi.
ToTextDpi
(width),
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
77
_rect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du);
78
_rect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (4)
104
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
106
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
109
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
111
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (10)
171
int subpageWidth = Math.Max(1, TextDpi.
ToTextDpi
(anchorLimitedWidth) - (mbp.BPLeft + mbp.BPRight));
180
int subpageHeight = Math.Max(1, TextDpi.
ToTextDpi
(anchorLimitedHeight) - (mbp.BPTop + mbp.BPBottom));
251
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
274
dvr = TextDpi.
ToTextDpi
(anchorLimitedHeight) + mbp.MarginTop + mbp.MarginBottom;
386
fsrcFlow.u += TextDpi.
ToTextDpi
(element.HorizontalOffset);
387
fsrcFlow.v += TextDpi.
ToTextDpi
(element.VerticalOffset);
404
int duColumnWidth = TextDpi.
ToTextDpi
(columnWidth);
405
int duGapWidth = TextDpi.
ToTextDpi
(gap);
585
int duColumnTotal = TextDpi.
ToTextDpi
(columnWidth + gap);
588
int columnDU = TextDpi.
ToTextDpi
(columnWidth);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (4)
230
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
232
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
235
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
237
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (4)
230
dvrAvailable = Math.Min(dvrAvailable, TextDpi.
ToTextDpi
(StructuralCache.CurrentFormatContext.PageHeight));
314
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
489
subpageWidth = TextDpi.
ToTextDpi
(TextDpi.MinWidth);
677
int durSpecified = TextDpi.
ToTextDpi
(specifiedWidth);
src\Framework\MS\Internal\PtsHost\Line.cs (15)
113
dvrSuppressible = Math.Max(0, TextDpi.
ToTextDpi
(_line.OverhangAfter));
136
dur = TextDpi.
ToTextDpi
(distance);
813
return TextDpi.
ToTextDpi
(_line.Start) + TextDpi.
ToTextDpi
(_indent) + CalculateUOffsetShift();
827
width = TextDpi.
ToTextDpi
(_line.WidthIncludingTrailingWhitespace) - TextDpi.
ToTextDpi
(_indent);
831
width = TextDpi.
ToTextDpi
(_line.Width) - TextDpi.
ToTextDpi
(_indent);
845
return TextDpi.
ToTextDpi
(_line.Height);
856
return TextDpi.
ToTextDpi
(_line.Baseline);
1118
width = TextDpi.
ToTextDpi
(_line.WidthIncludingTrailingWhitespace);
1119
trailingSpacesDelta = TextDpi.
ToTextDpi
(_line.Width) - width;
1124
width = TextDpi.
ToTextDpi
(_line.Width);
1134
if (width > TextDpi.
ToTextDpi
(_wrappingWidth))
1136
widthDelta = width - TextDpi.
ToTextDpi
(_wrappingWidth);
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (28)
177
get { return TextDpi.
ToTextDpi
(_margin.Left) + TextDpi.
ToTextDpi
(_border.Left) + TextDpi.
ToTextDpi
(_padding.Left); }
185
get { return TextDpi.
ToTextDpi
(_margin.Right) + TextDpi.
ToTextDpi
(_border.Right) + TextDpi.
ToTextDpi
(_padding.Right); }
193
get { return TextDpi.
ToTextDpi
(_margin.Top) + TextDpi.
ToTextDpi
(_border.Top) + TextDpi.
ToTextDpi
(_padding.Top); }
201
get { return TextDpi.
ToTextDpi
(_margin.Bottom) + TextDpi.
ToTextDpi
(_border.Bottom) + TextDpi.
ToTextDpi
(_padding.Bottom); }
209
get { return TextDpi.
ToTextDpi
(_border.Left) + TextDpi.
ToTextDpi
(_padding.Left); }
217
get { return TextDpi.
ToTextDpi
(_border.Right) + TextDpi.
ToTextDpi
(_padding.Right); }
225
get { return TextDpi.
ToTextDpi
(_border.Top) + TextDpi.
ToTextDpi
(_padding.Top); }
233
get { return TextDpi.
ToTextDpi
(_border.Bottom) + TextDpi.
ToTextDpi
(_padding.Bottom); }
241
get { return TextDpi.
ToTextDpi
(_border.Left); }
249
get { return TextDpi.
ToTextDpi
(_border.Right); }
257
get { return TextDpi.
ToTextDpi
(_border.Top); }
265
get { return TextDpi.
ToTextDpi
(_border.Bottom); }
273
get { return TextDpi.
ToTextDpi
(_margin.Left); }
281
get { return TextDpi.
ToTextDpi
(_margin.Right); }
289
get { return TextDpi.
ToTextDpi
(_margin.Top); }
297
get { return TextDpi.
ToTextDpi
(_margin.Bottom); }
src\Framework\MS\Internal\PtsHost\Pts.cs (4)
911
u = TextDpi.
ToTextDpi
(rect.Left);
912
v = TextDpi.
ToTextDpi
(rect.Top);
913
du = TextDpi.
ToTextDpi
(rect.Width);
914
dv = TextDpi.
ToTextDpi
(rect.Height);
src\Framework\MS\Internal\PtsHost\PtsCache.cs (1)
594
contextInfo.drMinColumnBalancingStep = TextDpi.
ToTextDpi
(10.0); // Assume 10px as minimal step
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (8)
1030
pfscolinfo[i].durBefore = TextDpi.
ToTextDpi
((i == 0) ? 0 : gap);
1031
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(columnWidth);
1045
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
((i == cColumns - 1) ? columnWidth + freeSpace : columnWidth);
1049
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
((i == 0) ? columnWidth + freeSpace : columnWidth);
1053
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(columnWidth + (freeSpace / cColumns));
1058
if (pfscolinfo[i].durWidth > TextDpi.
ToTextDpi
(pageWidth))
1060
pfscolinfo[i].durWidth = TextDpi.
ToTextDpi
(pageWidth);
1063
pfscolinfo[i].durBefore = TextDpi.
ToTextDpi
((i == 0) ? 0 : gap);
src\Framework\MS\Internal\PtsHost\PtsHost.cs (4)
1632
int dvrAscent = TextDpi.
ToTextDpi
(textBreakpoint.Baseline);
2658
dvrSumHeight = TextDpi.
ToTextDpi
(uiElement.DesiredSize.Height);
2659
dvrMinHeight = TextDpi.
ToTextDpi
(uiElement.DesiredSize.Height);
4419
dvrMinStep = TextDpi.
ToTextDpi
(1);
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (3)
145
int cellSpacing = TextDpi.
ToTextDpi
(Table.InternalCellSpacing);
218
durBBox = TextDpi.
ToTextDpi
(cellParaClient.TableParaClient.TableDesiredWidth);
354
dvrAboveBelow = TextDpi.
ToTextDpi
(Table.InternalCellSpacing / 2.0);
src\Framework\MS\Internal\PtsHost\Section.cs (6)
116
durPage = TextDpi.
ToTextDpi
(pageSize.Width);
117
dvrPage = TextDpi.
ToTextDpi
(pageSize.Height);
122
fsrcMargin.u = TextDpi.
ToTextDpi
(pageMargin.Left);
123
fsrcMargin.v = TextDpi.
ToTextDpi
(pageMargin.Top);
124
fsrcMargin.du = durPage - TextDpi.
ToTextDpi
(pageMargin.Left + pageMargin.Right);
125
fsrcMargin.dv = dvrPage - TextDpi.
ToTextDpi
(pageMargin.Top + pageMargin.Bottom);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (4)
116
_contentRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
118
_contentRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
121
_paddingRect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
123
_paddingRect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (8)
117
int vrRowTop = GetTableOffsetFirstRowTop() + TextDpi.
ToTextDpi
(Table.InternalCellSpacing) / 2;
163
cellParaClient.Arrange(TextDpi.
ToTextDpi
(urCellOffset), vrRowTop, _rect, ThisFlowDirection, _pageContext);
662
int u = TextDpi.
ToTextDpi
(point.X);
663
int v = TextDpi.
ToTextDpi
(point.Y);
1031
int suggestedU = TextDpi.
ToTextDpi
(suggestedX);
1118
int suggestedU = TextDpi.
ToTextDpi
(suggestedX);
1269
durTableWidth = TextDpi.
ToTextDpi
(tableWidth);
1294
durTableWidth = TextDpi.
ToTextDpi
(tableWidth);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (1)
1124
int urDistance = TextDpi.
ToTextDpi
(distance);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (3)
305
if (vrCur < TextDpi.
ToTextDpi
(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight))
884
dvr = TextDpi.
ToTextDpi
(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, _lineProperties.DefaultTextRunProperties.FontRenderingEmSize));
1137
int calculatedLineAdvance = TextDpi.
ToTextDpi
(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance)));
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
87
_rect.du = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.du);
88
_rect.dv = Math.Max(TextDpi.
ToTextDpi
(TextDpi.MinWidth), _rect.dv);
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (2)
413
fsbbox.fsrc.dv = TextDpi.
ToTextDpi
(elementHeight) + mbp.BPTop + mbp.BPBottom;
440
fsbbox.fsrc.dv = TextDpi.
ToTextDpi
(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
src\Framework\MS\Internal\Text\TextDpi.cs (6)
78
fspoint.u =
ToTextDpi
(point.X);
79
fspoint.v =
ToTextDpi
(point.Y);
89
fsvector.du =
ToTextDpi
(size.Width);
90
fsvector.dv =
ToTextDpi
(size.Height);
123
size = new Size(FromTextDpi(
ToTextDpi
(size.Width)), FromTextDpi(
ToTextDpi
(size.Height)));