340 references to TextDpi
PresentationFramework (340)
MS\Internal\Documents\ColumnResult.cs (12)
46TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v), 47TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 50_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v)); 67TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v), 68TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 71_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.u), TextDpi.FromTextDpi(trackDesc.fsrc.v));
MS\Internal\Documents\FlowDocumentView.cs (1)
108TextDpi.SnapToTextDpi(ref safeArrangeSize);
MS\Internal\Documents\ParagraphResult.cs (6)
943return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1058return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1230return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop));
MS\Internal\Documents\TextBoxView.cs (2)
466TextDpi.EnsureValidLineWidth(ref safeConstraint); 2943TextDpi.EnsureValidLineWidth(ref width);
MS\Internal\Documents\TextDocumentView.cs (1)
2586positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - TextDpi.FromTextDpi(cpcCur.Rect.u), ref count);
MS\Internal\PtsHost\BaseParaClient.cs (1)
140Rect rect = TextDpi.FromTextRect(_rect);
MS\Internal\PtsHost\CellParaClient.cs (20)
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), 328transform = new TranslateTransform(-TextDpi.FromTextDpi(ContentRect.u), -TextDpi.FromTextDpi(ContentRect.v)); 338Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 341transform = new TranslateTransform(TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 444_rectTable = new Rect(TextDpi.FromTextDpi(tpc.Rect.u), 445TextDpi.FromTextDpi(tpc.Rect.v), 446TextDpi.FromTextDpi(tpc.Rect.du), 447TextDpi.FromTextDpi(tpc.Rect.dv)); 449_rectCell = new Rect(TextDpi.FromTextDpi(cpc.Rect.u), 450TextDpi.FromTextDpi(cpc.Rect.v), 451TextDpi.FromTextDpi(cpc.Rect.du), 452TextDpi.FromTextDpi(cpc.Rect.dv));
MS\Internal\PtsHost\CellParagraph.cs (2)
77Math.Max(TextDpi.FromTextDpi(dvrAvailable), 0)); 191cellParaClient.ArrangeHeight = TextDpi.FromTextDpi(dvrActual);
MS\Internal\PtsHost\ContainerParaClient.cs (5)
61_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 62_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv); 404return (TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect));
MS\Internal\PtsHost\FigureHelper.cs (1)
191TextDpi.EnsureValidPageWidth(ref value);
MS\Internal\PtsHost\FigureParaClient.cs (15)
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); 330rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 441sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties); 745geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect); 749Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
MS\Internal\PtsHost\FigureParagraph.cs (17)
154double anchorLimitedWidth = LimitTotalWidthFromAnchor(specifiedWidth, TextDpi.FromTextDpi(mbp.MarginLeft + mbp.MarginRight)); 155int subpageWidth = Math.Max(1, TextDpi.ToTextDpi(anchorLimitedWidth) - (mbp.BPLeft + mbp.BPRight)); 163double anchorLimitedHeight = LimitTotalHeightFromAnchor(specifiedHeight, TextDpi.FromTextDpi(mbp.MarginTop + mbp.MarginBottom)); 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); 507StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 557int duColumnTotal = TextDpi.ToTextDpi(columnWidth + gap); 560int columnDU = TextDpi.ToTextDpi(columnWidth); 611width = Math.Max(TextDpi.MinWidth, maxTotalWidth - elementMarginWidth); 640height = Math.Max(TextDpi.MinWidth, maxTotalHeight - elementMarginHeight);
MS\Internal\PtsHost\FloaterParaClient.cs (15)
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); 335rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 448sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties); 754geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect); 758Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
MS\Internal\PtsHost\FloaterParagraph.cs (15)
189if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 218dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 229specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 302subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 396if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 414specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 470subpageWidth = TextDpi.ToTextDpi(TextDpi.MinWidth); 656TextDpi.EnsureValidPageWidth(ref specifiedWidth); 658int durSpecified = TextDpi.ToTextDpi(specifiedWidth); 710StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 753StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
124TextDpi.EnsureValidPageSize(ref pageSize); 184TextDpi.EnsureValidPageSize(ref pageSize); 185TextDpi.EnsureValidPageMargin(ref pageMargin, pageSize);
MS\Internal\PtsHost\Line.cs (25)
104dvrSuppressible = Math.Max(0, TextDpi.ToTextDpi(_line.OverhangAfter)); 127dur = TextDpi.ToTextDpi(distance); 273_wrappingWidth = TextDpi.FromTextDpi(width); 274_trackWidth = TextDpi.FromTextDpi(trackWidth); 450double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 504double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 561return line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urDistance)); 563return _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urDistance - delta)); 593charIndex = line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urOffset)); 598charIndex = _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urOffset - delta)); 680double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 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); 999double delta = TextDpi.FromTextDpi(CalculateUOffsetShift()); 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\ListMarkerLine.cs (2)
110Point drawLocation = new Point(TextDpi.FromTextDpi(ur), TextDpi.FromTextDpi(vrBaseline) - line.Baseline);
MS\Internal\PtsHost\ListParaClient.cs (1)
97ctx.PushTransform(new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * listItemParaClient.Rect.u + listItemParaClient.Rect.du), 0.0));
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\OptimalTextSource.cs (1)
239return inlineObject.UIElementIsland.DoLayout(new Size(TextDpi.FromTextDpi(_durTrack), pageHeight), true, true);
MS\Internal\PtsHost\Pts.cs (10)
867u = TextDpi.ToTextDpi(rect.Left); 868v = TextDpi.ToTextDpi(rect.Top); 869du = TextDpi.ToTextDpi(rect.Width); 870dv = TextDpi.ToTextDpi(rect.Height); 908return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv)); 986return new Vector(TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv));
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 (5)
1560int dvrAscent = TextDpi.ToTextDpi(textBreakpoint.Baseline); 1561int dvrDescent = TextDpi.ToTextDpi(textBreakpoint.Height - textBreakpoint.Baseline); 2527dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2528dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 4151dvrMinStep = TextDpi.ToTextDpi(1);
MS\Internal\PtsHost\PtsPage.cs (11)
209PTS.FSPOINT pt = TextDpi.ToTextPoint(p); 775_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 776_calculatedSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.dv)); 780_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width); 781_contentSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(bbox.fsrc.dv)); 1147visual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(sectionDesc.fsrc.v), TextDpi.FromTextDpi(sectionDesc.fsrc.dv), columnProperties);
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\RunClient.cs (1)
54TextDpi.EnsureValidObjSize(ref desiredSize);
MS\Internal\PtsHost\Section.cs (7)
110durPage = TextDpi.ToTextDpi(pageSize.Width); 111dvrPage = TextDpi.ToTextDpi(pageSize.Height); 115TextDpi.EnsureValidPageMargin(ref pageMargin, pageSize); 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\SectionVisual.cs (1)
53double u = TextDpi.FromTextDpi(arrayColumnDesc[index].fsrc.u - gapWidth);
MS\Internal\PtsHost\SubpageParaClient.cs (12)
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); 265rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v)); 375sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties);
MS\Internal\PtsHost\SubpageParagraph.cs (12)
209cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 213PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 217StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 383cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 387PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 392StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 543cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false); 547PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false); 550StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
MS\Internal\PtsHost\TableParaClient.cs (17)
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); 1137return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 1138TextDpi.FromTextDpi(vrCur), 1140TextDpi.FromTextDpi(arrayTableRowDesc[iR].u.dvrRow)); 1172double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 1176durTableWidth = TextDpi.ToTextDpi(tableWidth); 1198double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 1201durTableWidth = TextDpi.ToTextDpi(tableWidth); 1814return TextDpi.FromTextDpi(arrayTableRowDesc[rowIndex].u.dvrRow + dvAdjustment); 2016double durTotalPadding = cellSpacing * Table.ColumnCount + TextDpi.FromTextDpi(mbpInfo.MBPLeft + mbpInfo.MBPRight); 2320durTableWidth = TextDpi.FromTextDpi(mbpInfo.BPLeft); 2405durTableWidth += mbpInfo.Margin.Left + TextDpi.FromTextDpi(mbpInfo.MBPRight);
MS\Internal\PtsHost\TextParaClient.cs (51)
139PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du)); 756transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0); 970int urDistance = TextDpi.ToTextDpi(distance); 1414offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 1475lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 1490offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 1534TextDpi.FromTextDpi(lineDesc.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 1535TextDpi.FromTextDpi(lineDesc.durBBox), TextDpi.FromTextDpi(lineDesc.dvrAscent + lineDesc.dvrDescent)); 1547lbox, TextDpi.FromTextDpi(lineDesc.dvrAscent))); 1595Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 1596TextDpi.FromTextDpi(element.durBBox), TextDpi.FromTextDpi(element.dvrAscent + element.dvrDescent)); 1608lbox, TextDpi.FromTextDpi(element.dvrAscent))); 1676rect.X += TextDpi.FromTextDpi(lineDesc.urStart); 1677rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart); 1773rect.X += TextDpi.FromTextDpi(element.urStart); 1774rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart); 2112double duOffset = TextDpi.FromTextDpi(lineDesc.urStart); 2113double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart); 2133duOffset + TextDpi.FromTextDpi(line.Start + line.Width), 2136TextDpi.FromTextDpi(line.Height) + lineTopSpace 2222double duOffset = TextDpi.FromTextDpi(elemDesc.urStart); 2223double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart); 2243duOffset + TextDpi.FromTextDpi(line.Start + line.Width), 2246TextDpi.FromTextDpi(line.Height) + lineTopSpace 3249lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3264offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 3294lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3305offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 3450lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3471lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3510lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3643lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3659offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange); 3712lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 3724offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange); 3941rectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart)); 4140List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
MS\Internal\PtsHost\TextParagraph.cs (7)
204TextDpi.FromTextDpi(durTrack), 292if (vrCur < TextDpi.ToTextDpi(double.IsPositiveInfinity(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight)) 395TextDpi.FromTextDpi(durLine), 870dvr = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, _lineProperties.DefaultTextRunProperties.FontRenderingEmSize)); 1122int calculatedLineAdvance = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance))); 1331TextDpi.EnsureValidLineWidth(ref width);
MS\Internal\PtsHost\UIElementParaClient.cs (5)
76_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 77_rect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv); 105PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
MS\Internal\PtsHost\UIElementParagraph.cs (7)
387double elementWidth = TextDpi.FromTextDpi(Math.Max(1, durAvailable - (mbp.MBPLeft + mbp.MBPRight))); 404elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom)); 411fsbbox.fsrc.dv = TextDpi.ToTextDpi(elementHeight) + mbp.BPTop + mbp.BPBottom; 424elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 425elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight); 438fsbbox.fsrc.dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
MS\Internal\Text\DynamicPropertyReader.cs (2)
211return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
MS\Internal\Text\InlineObject.cs (1)
49TextDpi.EnsureValidObjSize(ref desiredSize);
MS\Internal\Text\TextProperties.cs (1)
47TextDpi.EnsureValidLineOffset(ref emSize);
System\Windows\Controls\TextBlock.cs (3)
1269TextDpi.EnsureValidLineWidth(ref contentSize); 3235TextDpi.EnsureValidLineWidth(ref width); 3295TextDpi.EnsureValidLineWidth(ref goodWidth); // wrappingWidth is already valid, per CalcWrappingWidth
System\Windows\Documents\Block.cs (1)
486double minLineHeight = TextDpi.MinWidth;
System\Windows\Documents\TextElement.cs (1)
1604double minFontSize = TextDpi.MinWidth;