176 references to FromTextDpi
PresentationFramework (176)
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\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\TextDocumentView.cs (1)
2586positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - TextDpi.FromTextDpi(cpcCur.Rect.u), ref count);
MS\Internal\PtsHost\CellParaClient.cs (14)
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 (1)
404return (TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect));
MS\Internal\PtsHost\FigureParaClient.cs (7)
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 (4)
154double anchorLimitedWidth = LimitTotalWidthFromAnchor(specifiedWidth, TextDpi.FromTextDpi(mbp.MarginLeft + mbp.MarginRight)); 163double anchorLimitedHeight = LimitTotalHeightFromAnchor(specifiedHeight, TextDpi.FromTextDpi(mbp.MarginTop + mbp.MarginBottom)); 507StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
MS\Internal\PtsHost\FloaterParaClient.cs (7)
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 (7)
189if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 229specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 396if (IsFloaterRejected(PTS.ToBoolean(fAtMaxWidth), TextDpi.FromTextDpi(durAvailable))) 414specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable)); 710StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 753StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
MS\Internal\PtsHost\Line.cs (10)
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()); 999double delta = TextDpi.FromTextDpi(CalculateUOffsetShift());
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\OptimalTextSource.cs (1)
239return inlineObject.UIElementIsland.DoLayout(new Size(TextDpi.FromTextDpi(_durTrack), pageHeight), true, true);
MS\Internal\PtsHost\Pts.cs (6)
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\PtsPage.cs (6)
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\SectionVisual.cs (1)
53double u = TextDpi.FromTextDpi(arrayColumnDesc[index].fsrc.u - gapWidth);
MS\Internal\PtsHost\SubpageParaClient.cs (4)
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 (10)
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 (9)
1137return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 1138TextDpi.FromTextDpi(vrCur), 1140TextDpi.FromTextDpi(arrayTableRowDesc[iR].u.dvrRow)); 1172double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 1198double availableSpace = TextDpi.FromTextDpi(durAvailableSpace); 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 (50)
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); 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 (3)
204TextDpi.FromTextDpi(durTrack), 395TextDpi.FromTextDpi(durLine), 1122int calculatedLineAdvance = TextDpi.ToTextDpi(_lineProperties.CalcLineAdvanceForTextParagraph(this, dcp, TextDpi.FromTextDpi(thisLineAdvance)));
MS\Internal\PtsHost\UIElementParaClient.cs (1)
105PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
MS\Internal\PtsHost\UIElementParagraph.cs (5)
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)); 424elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 425elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight);
MS\Internal\Text\TextDpi.cs (6)
94FromTextDpi(fsrect.u), 95FromTextDpi(fsrect.v), 96FromTextDpi(fsrect.du), 97FromTextDpi(fsrect.dv)); 117size = new Size(FromTextDpi(ToTextDpi(size.Width)), FromTextDpi(ToTextDpi(size.Height)));