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