125 references to ToTextDpi
PresentationFramework (125)
MS\Internal\PtsHost\CellParaClient.cs (6)
101_rect.du = TextDpi.ToTextDpi(durCellWidth); 102_rect.dv = TextDpi.ToTextDpi(_arrangeHeight); 169rectCell.du = TextDpi.ToTextDpi(subpageSize.Width); 170rectCell.dv = TextDpi.ToTextDpi(subpageSize.Height); 232fswdir, 0, TextDpi.ToTextDpi(width), 280TextDpi.ToTextDpi(width),
MS\Internal\PtsHost\ContainerParaClient.cs (2)
60_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 61_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv);
MS\Internal\PtsHost\FigureParaClient.cs (4)
74_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 76_contentRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop); 79_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 81_paddingRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\FigureParagraph.cs (10)
149int subpageWidth = Math.Max(1, TextDpi.ToTextDpi(anchorLimitedWidth) - (mbp.BPLeft + mbp.BPRight)); 158int subpageHeight = Math.Max(1, TextDpi.ToTextDpi(anchorLimitedHeight) - (mbp.BPTop + mbp.BPBottom)); 229subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 252dvr = TextDpi.ToTextDpi(anchorLimitedHeight) + mbp.MarginTop + mbp.MarginBottom; 360fsrcFlow.u += TextDpi.ToTextDpi(element.HorizontalOffset); 361fsrcFlow.v += TextDpi.ToTextDpi(element.VerticalOffset); 378int duColumnWidth = TextDpi.ToTextDpi(columnWidth); 379int duGapWidth = TextDpi.ToTextDpi(gap); 547int duColumnTotal = TextDpi.ToTextDpi(columnWidth + gap); 550int columnDU = TextDpi.ToTextDpi(columnWidth);
MS\Internal\PtsHost\FloaterParaClient.cs (4)
197_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 199_contentRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop); 202_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 204_paddingRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\FloaterParagraph.cs (4)
214dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 300subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 470subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 652int durSpecified = TextDpi.ToTextDpi(specifiedWidth);
MS\Internal\PtsHost\Line.cs (15)
92dvrSuppressible = Math.Max(0, TextDpi.ToTextDpi(_line.OverhangAfter)); 115dur = TextDpi.ToTextDpi(distance); 791return TextDpi.ToTextDpi(_line.Start) + TextDpi.ToTextDpi(_indent) + CalculateUOffsetShift(); 805width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace) - TextDpi.ToTextDpi(_indent); 809width = TextDpi.ToTextDpi(_line.Width) - TextDpi.ToTextDpi(_indent); 823return TextDpi.ToTextDpi(_line.Height); 834return TextDpi.ToTextDpi(_line.Baseline); 1091width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace); 1092trailingSpacesDelta = TextDpi.ToTextDpi(_line.Width) - width; 1097width = TextDpi.ToTextDpi(_line.Width); 1107if (width > TextDpi.ToTextDpi(_wrappingWidth)) 1109widthDelta = width - TextDpi.ToTextDpi(_wrappingWidth);
MS\Internal\PtsHost\MbpInfo.cs (28)
173get { return TextDpi.ToTextDpi(_margin.Left) + TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 181get { return TextDpi.ToTextDpi(_margin.Right) + TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 189get { return TextDpi.ToTextDpi(_margin.Top) + TextDpi.ToTextDpi(_border.Top) + TextDpi.ToTextDpi(_padding.Top); } 197get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 205get { return TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 213get { return TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 221get { return TextDpi.ToTextDpi(_border.Top) + TextDpi.ToTextDpi(_padding.Top); } 229get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 237get { return TextDpi.ToTextDpi(_border.Left); } 245get { return TextDpi.ToTextDpi(_border.Right); } 253get { return TextDpi.ToTextDpi(_border.Top); } 261get { return TextDpi.ToTextDpi(_border.Bottom); } 269get { return TextDpi.ToTextDpi(_margin.Left); } 277get { return TextDpi.ToTextDpi(_margin.Right); } 285get { return TextDpi.ToTextDpi(_margin.Top); } 293get { return TextDpi.ToTextDpi(_margin.Bottom); }
MS\Internal\PtsHost\Pts.cs (4)
866u = TextDpi.ToTextDpi(rect.Left); 867v = TextDpi.ToTextDpi(rect.Top); 868du = TextDpi.ToTextDpi(rect.Width); 869dv = TextDpi.ToTextDpi(rect.Height);
MS\Internal\PtsHost\PtsCache.cs (1)
507contextInfo.drMinColumnBalancingStep = TextDpi.ToTextDpi(10.0); // Assume 10px as minimal step
MS\Internal\PtsHost\PtsHelper.cs (8)
919pfscolinfo[i].durBefore = TextDpi.ToTextDpi((i == 0) ? 0 : gap); 920pfscolinfo[i].durWidth = TextDpi.ToTextDpi(columnWidth); 934pfscolinfo[i].durWidth = TextDpi.ToTextDpi((i == cColumns - 1) ? columnWidth + freeSpace : columnWidth); 938pfscolinfo[i].durWidth = TextDpi.ToTextDpi((i == 0) ? columnWidth + freeSpace : columnWidth); 942pfscolinfo[i].durWidth = TextDpi.ToTextDpi(columnWidth + (freeSpace / cColumns)); 947if (pfscolinfo[i].durWidth > TextDpi.ToTextDpi(pageWidth)) 949pfscolinfo[i].durWidth = TextDpi.ToTextDpi(pageWidth); 952pfscolinfo[i].durBefore = TextDpi.ToTextDpi((i == 0) ? 0 : gap);
MS\Internal\PtsHost\PtsHost.cs (4)
1546int dvrAscent = TextDpi.ToTextDpi(textBreakpoint.Baseline); 2509dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2510dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 4130dvrMinStep = TextDpi.ToTextDpi(1);
MS\Internal\PtsHost\RowParagraph.cs (3)
135int cellSpacing = TextDpi.ToTextDpi(Table.InternalCellSpacing); 204durBBox = TextDpi.ToTextDpi(cellParaClient.TableParaClient.TableDesiredWidth); 335dvrAboveBelow = TextDpi.ToTextDpi(Table.InternalCellSpacing / 2.0);
MS\Internal\PtsHost\Section.cs (6)
109durPage = TextDpi.ToTextDpi(pageSize.Width); 110dvrPage = TextDpi.ToTextDpi(pageSize.Height); 115fsrcMargin.u = TextDpi.ToTextDpi(pageMargin.Left); 116fsrcMargin.v = TextDpi.ToTextDpi(pageMargin.Top); 117fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right); 118fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
MS\Internal\PtsHost\SubpageParaClient.cs (4)
91_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 93_contentRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop); 96_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 98_paddingRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
MS\Internal\PtsHost\TableParaClient.cs (8)
98int vrRowTop = GetTableOffsetFirstRowTop() + TextDpi.ToTextDpi(Table.InternalCellSpacing) / 2; 144cellParaClient.Arrange(TextDpi.ToTextDpi(urCellOffset), vrRowTop, _rect, ThisFlowDirection, _pageContext); 606int u = TextDpi.ToTextDpi(point.X); 607int v = TextDpi.ToTextDpi(point.Y); 950int suggestedU = TextDpi.ToTextDpi(suggestedX); 1031int suggestedU = TextDpi.ToTextDpi(suggestedX); 1175durTableWidth = TextDpi.ToTextDpi(tableWidth); 1200durTableWidth = TextDpi.ToTextDpi(tableWidth);
MS\Internal\PtsHost\TextParaClient.cs (1)
969int urDistance = TextDpi.ToTextDpi(distance);
MS\Internal\PtsHost\TextParagraph.cs (3)
280if (vrCur < TextDpi.ToTextDpi(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight)) 853dvr = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, _lineProperties.DefaultTextRunProperties.FontRenderingEmSize)); 1099int calculatedLineAdvance = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance)));
MS\Internal\PtsHost\UIElementParaClient.cs (2)
75_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 76_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv);
MS\Internal\PtsHost\UIElementParagraph.cs (2)
415dv = TextDpi.ToTextDpi(elementHeight) + mbp.BPTop + mbp.BPBottom 444dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom
MS\Internal\Text\TextDpi.cs (6)
72u = ToTextDpi(point.X), 73v = ToTextDpi(point.Y) 85du = ToTextDpi(size.Width), 86dv = ToTextDpi(size.Height) 120size = new Size(FromTextDpi(ToTextDpi(size.Width)), FromTextDpi(ToTextDpi(size.Height)));