339 references to TextDpi
PresentationFramework (339)
src\Framework\MS\Internal\Documents\ColumnResult.cs (12)
60TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v), 61TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 64_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v)); 85TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v), 86TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 89_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v));
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
115TextDpi.SnapToTextDpi(ref safeArrangeSize);
src\Framework\MS\Internal\Documents\ParagraphResult.cs (6)
954return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1069return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1242return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop));
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
469TextDpi.EnsureValidLineWidth(ref safeConstraint); 2922TextDpi.EnsureValidLineWidth(ref width);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
2596positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - TextDpi.FromTextDpi(cpcCur.Rect.u), ref count);
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (1)
163Rect rect = TextDpi.FromTextRect(_rect);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (20)
119_rect.du = TextDpi.ToTextDpi(durCellWidth); 120_rect.dv = TextDpi.ToTextDpi(_arrangeHeight); 192rectCell.du = TextDpi.ToTextDpi(subpageSize.Width); 193rectCell.dv = TextDpi.ToTextDpi(subpageSize.Height); 260fswdir, 0, TextDpi.ToTextDpi(width), 313TextDpi.ToTextDpi(width), 360transform = new TranslateTransform(-TextDpi.FromTextDpi(ContentRect.u), -TextDpi.FromTextDpi(ContentRect.v)); 370Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 373transform = new TranslateTransform(TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 477_rectTable = new Rect(TextDpi.FromTextDpi(tpc.Rect.u), 478TextDpi.FromTextDpi(tpc.Rect.v), 479TextDpi.FromTextDpi(tpc.Rect.du), 480TextDpi.FromTextDpi(tpc.Rect.dv)); 482_rectCell = new Rect(TextDpi.FromTextDpi(cpc.Rect.u), 483TextDpi.FromTextDpi(cpc.Rect.v), 484TextDpi.FromTextDpi(cpc.Rect.du), 485TextDpi.FromTextDpi(cpc.Rect.dv));
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (2)
89Math.Max(TextDpi.FromTextDpi(dvrAvailable), 0)); 203cellParaClient.ArrangeHeight = TextDpi.FromTextDpi(dvrActual);
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (5)
77_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 78_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv); 471return (TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect));
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (1)
196TextDpi.EnsureValidPageWidth(ref value);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (15)
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); 379rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 498sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties); 826geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect); 830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (17)
170double anchorLimitedWidth = LimitTotalWidthFromAnchor(specifiedWidth, TextDpi.FromTextDpi(mbp.MarginLeft + mbp.MarginRight)); 171int subpageWidth = Math.Max(1, TextDpi.ToTextDpi(anchorLimitedWidth) - (mbp.BPLeft + mbp.BPRight)); 179double anchorLimitedHeight = LimitTotalHeightFromAnchor(specifiedHeight, TextDpi.FromTextDpi(mbp.MarginTop + mbp.MarginBottom)); 180int subpageHeight = Math.Max(1, TextDpi.ToTextDpi(anchorLimitedHeight) - (mbp.BPTop + mbp.BPBottom)); 251subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 274dvr = TextDpi.ToTextDpi(anchorLimitedHeight) + mbp.MarginTop + mbp.MarginBottom; 386fsrcFlow.u += TextDpi.ToTextDpi(element.HorizontalOffset); 387fsrcFlow.v += TextDpi.ToTextDpi(element.VerticalOffset); 404int duColumnWidth = TextDpi.ToTextDpi(columnWidth); 405int duGapWidth = TextDpi.ToTextDpi(gap); 535StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 585int duColumnTotal = TextDpi.ToTextDpi(columnWidth + gap); 588int columnDU = TextDpi.ToTextDpi(columnWidth); 639width = Math.Max(TextDpi.MinWidth, maxTotalWidth - elementMarginWidth); 668height = Math.Max(TextDpi.MinWidth, maxTotalHeight - elementMarginHeight);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (15)
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); 381rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 502sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties); 832geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect); 836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (15)
201if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 230dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 241specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 314subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 415if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 433specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 489subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 675TextDpi.EnsureValidPageWidth(ref specifiedWidth); 677int durSpecified = TextDpi.ToTextDpi(specifiedWidth); 737StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 787StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
134TextDpi.EnsureValidPageSize(ref pageSize); 194TextDpi.EnsureValidPageSize(ref pageSize); 195TextDpi.EnsureValidPageMargin(ref pageMargin, pageSize);
src\Framework\MS\Internal\PtsHost\Line.cs (25)
113dvrSuppressible = Math.Max(0, TextDpi.ToTextDpi(_line.OverhangAfter)); 136dur = TextDpi.ToTextDpi(distance); 282_wrappingWidth = TextDpi.FromTextDpi(width); 283_trackWidth = TextDpi.FromTextDpi(trackWidth); 459double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 513double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 570return line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urDistance)); 572return _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urDistance - delta)); 602charIndex = line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urOffset)); 607charIndex = _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urOffset - delta)); 689double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 813return TextDpi.ToTextDpi(_line.Start) + TextDpi.ToTextDpi(_indent) + CalculateUOffsetShift(); 827width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace) - TextDpi.ToTextDpi(_indent); 831width = TextDpi.ToTextDpi(_line.Width) - TextDpi.ToTextDpi(_indent); 845return TextDpi.ToTextDpi(_line.Height); 856return TextDpi.ToTextDpi(_line.Baseline); 1008double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 1118width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace); 1119trailingSpacesDelta = TextDpi.ToTextDpi(_line.Width) - width; 1124width = TextDpi.ToTextDpi(_line.Width); 1134if (width > TextDpi.ToTextDpi(_wrappingWidth)) 1136widthDelta = width - TextDpi.ToTextDpi(_wrappingWidth);
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (2)
121Point drawLocation = new Point(TextDpi.FromTextDpi(ur), TextDpi.FromTextDpi(vrBaseline) - line.Baseline);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (1)
111ctx.PushTransform(new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * listItemParaClient.Rect.u + listItemParaClient.Rect.du), 0.0));
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (28)
177get { return TextDpi.ToTextDpi(_margin.Left) + TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 185get { return TextDpi.ToTextDpi(_margin.Right) + TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 193get { return TextDpi.ToTextDpi(_margin.Top) + TextDpi.ToTextDpi(_border.Top) + TextDpi.ToTextDpi(_padding.Top); } 201get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 209get { return TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 217get { return TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 225get { return TextDpi.ToTextDpi(_border.Top) + TextDpi.ToTextDpi(_padding.Top); } 233get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 241get { return TextDpi.ToTextDpi(_border.Left); } 249get { return TextDpi.ToTextDpi(_border.Right); } 257get { return TextDpi.ToTextDpi(_border.Top); } 265get { return TextDpi.ToTextDpi(_border.Bottom); } 273get { return TextDpi.ToTextDpi(_margin.Left); } 281get { return TextDpi.ToTextDpi(_margin.Right); } 289get { return TextDpi.ToTextDpi(_margin.Top); } 297get { return TextDpi.ToTextDpi(_margin.Bottom); }
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
250return inlineObject.UIElementIsland.DoLayout(new Size(TextDpi.FromTextDpi(_durTrack), pageHeight), true, true);
src\Framework\MS\Internal\PtsHost\Pts.cs (10)
911u = TextDpi.ToTextDpi(rect.Left); 912v = TextDpi.ToTextDpi(rect.Top); 913du = TextDpi.ToTextDpi(rect.Width); 914dv = TextDpi.ToTextDpi(rect.Height); 952return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv)); 1030return new Vector(TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv));
src\Framework\MS\Internal\PtsHost\PtsCache.cs (1)
594contextInfo.drMinColumnBalancingStep = TextDpi.ToTextDpi(10.0); // Assume 10px as minimal step
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (8)
1030pfscolinfo[i].durBefore = TextDpi.ToTextDpi((i == 0) ? 0 : gap); 1031pfscolinfo[i].durWidth = TextDpi.ToTextDpi(columnWidth); 1045pfscolinfo[i].durWidth = TextDpi.ToTextDpi((i == cColumns - 1) ? columnWidth + freeSpace : columnWidth); 1049pfscolinfo[i].durWidth = TextDpi.ToTextDpi((i == 0) ? columnWidth + freeSpace : columnWidth); 1053pfscolinfo[i].durWidth = TextDpi.ToTextDpi(columnWidth + (freeSpace / cColumns)); 1058if (pfscolinfo[i].durWidth > TextDpi.ToTextDpi(pageWidth)) 1060pfscolinfo[i].durWidth = TextDpi.ToTextDpi(pageWidth); 1063pfscolinfo[i].durBefore = TextDpi.ToTextDpi((i == 0) ? 0 : gap);
src\Framework\MS\Internal\PtsHost\PtsHost.cs (5)
1632int dvrAscent = TextDpi.ToTextDpi(textBreakpoint.Baseline); 1633int dvrDescent = TextDpi.ToTextDpi(textBreakpoint.Height - textBreakpoint.Baseline); 2658dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2659dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 4419dvrMinStep = TextDpi.ToTextDpi(1);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (11)
224PTS.FSPOINT pt = TextDpi.ToTextPoint(p); 853_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 854_calculatedSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.dv)); 858_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width); 859_contentSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(bbox.fsrc.dv)); 1262visual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(sectionDesc.fsrc.v), TextDpi.FromTextDpi(sectionDesc.fsrc.dv), columnProperties);
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (3)
145int cellSpacing = TextDpi.ToTextDpi(Table.InternalCellSpacing); 218durBBox = TextDpi.ToTextDpi(cellParaClient.TableParaClient.TableDesiredWidth); 354dvrAboveBelow = TextDpi.ToTextDpi(Table.InternalCellSpacing / 2.0);
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
60TextDpi.EnsureValidObjSize(ref desiredSize);
src\Framework\MS\Internal\PtsHost\Section.cs (7)
116durPage = TextDpi.ToTextDpi(pageSize.Width); 117dvrPage = TextDpi.ToTextDpi(pageSize.Height); 121TextDpi.EnsureValidPageMargin(ref pageMargin, pageSize); 122fsrcMargin.u = TextDpi.ToTextDpi(pageMargin.Left); 123fsrcMargin.v = TextDpi.ToTextDpi(pageMargin.Top); 124fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right); 125fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
src\Framework\MS\Internal\PtsHost\SectionVisual.cs (1)
58double u = TextDpi.FromTextDpi(arrayColumnDesc[index].fsrc.u - gapWidth);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (12)
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); 305rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 423sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties);
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (12)
227cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 231PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 235StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 413cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 417PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 422StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 582cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 586PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 589StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (17)
117int vrRowTop = GetTableOffsetFirstRowTop() + TextDpi.ToTextDpi(Table.InternalCellSpacing) / 2; 163cellParaClient.Arrange(TextDpi.ToTextDpi(urCellOffset), vrRowTop, _rect, ThisFlowDirection, _pageContext); 662int u = TextDpi.ToTextDpi(point.X); 663int v = TextDpi.ToTextDpi(point.Y); 1031int suggestedU = TextDpi.ToTextDpi(suggestedX); 1118int suggestedU = TextDpi.ToTextDpi(suggestedX); 1230return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 1231TextDpi.FromTextDpi(vrCur), 1233TextDpi.FromTextDpi(arrayTableRowDesc[iR].u.dvrRow)); 1265double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 1269durTableWidth = TextDpi.ToTextDpi(tableWidth); 1291double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 1294durTableWidth = TextDpi.ToTextDpi(tableWidth); 1932return TextDpi.FromTextDpi(arrayTableRowDesc[rowIndex].u.dvrRow + dvAdjustment); 2143double durTotalPadding = cellSpacing * Table.ColumnCount + TextDpi.FromTextDpi(mbpInfo.MBPLeft + mbpInfo.MBPRight); 2447durTableWidth = TextDpi.FromTextDpi(mbpInfo.BPLeft); 2532durTableWidth += mbpInfo.Margin.Left + TextDpi.FromTextDpi(mbpInfo.MBPRight);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (51)
157PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du)); 871transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0); 1124int urDistance = TextDpi.ToTextDpi(distance); 1603offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 1664lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 1679offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 1729TextDpi.FromTextDpi(lineDesc.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 1730TextDpi.FromTextDpi(lineDesc.durBBox), TextDpi.FromTextDpi(lineDesc.dvrAscent + lineDesc.dvrDescent)); 1742lbox, TextDpi.FromTextDpi(lineDesc.dvrAscent))); 1797Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 1798TextDpi.FromTextDpi(element.durBBox), TextDpi.FromTextDpi(element.dvrAscent + element.dvrDescent)); 1810lbox, TextDpi.FromTextDpi(element.dvrAscent))); 1882rect.X += TextDpi.FromTextDpi(lineDesc.urStart); 1883rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart); 1984rect.X += TextDpi.FromTextDpi(element.urStart); 1985rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart); 2332double duOffset = TextDpi.FromTextDpi(lineDesc.urStart); 2333double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart); 2353duOffset + TextDpi.FromTextDpi(line.Start + line.Width), 2356TextDpi.FromTextDpi(line.Height) + lineTopSpace 2442double duOffset = TextDpi.FromTextDpi(elemDesc.urStart); 2443double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart); 2463duOffset + TextDpi.FromTextDpi(line.Start + line.Width), 2466TextDpi.FromTextDpi(line.Height) + lineTopSpace 3512lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3527offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 3557lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3568offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 3717lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3738lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3777lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3924lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3940offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 3993lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 4005offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 4235rectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 4448List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (7)
216TextDpi.FromTextDpi(durTrack), 305if (vrCur < TextDpi.ToTextDpi(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight)) 408TextDpi.FromTextDpi(durLine), 884dvr = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, _lineProperties.DefaultTextRunProperties.FontRenderingEmSize)); 1137int calculatedLineAdvance = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance))); 1346TextDpi.EnsureValidLineWidth(ref width);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (5)
87_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 88_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv); 116PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (7)
389double elementWidth = TextDpi.FromTextDpi(Math.Max(1, durAvailable - (mbp.MBPLeft + mbp.MBPRight))); 406elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom)); 413fsbbox.fsrc.dv = TextDpi.ToTextDpi(elementHeight) + mbp.BPTop + mbp.BPBottom; 426elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 427elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight); 440fsbbox.fsrc.dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (2)
220return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
src\Framework\MS\Internal\Text\InlineObject.cs (1)
56TextDpi.EnsureValidObjSize(ref desiredSize);
src\Framework\MS\Internal\Text\TextProperties.cs (1)
52TextDpi.EnsureValidLineOffset(ref emSize);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1357TextDpi.EnsureValidLineWidth(ref contentSize); 3336TextDpi.EnsureValidLineWidth(ref width);
src\Framework\System\Windows\Documents\Block.cs (1)
512double minLineHeight = TextDpi.MinWidth;
src\Framework\System\Windows\Documents\TextElement.cs (1)
1656double minFontSize = TextDpi.MinWidth;