46 writes to du
PresentationFramework (46)
MS\Internal\PtsHost\CellParaClient.cs (2)
102_rect.du = TextDpi.ToTextDpi(durCellWidth); 170rectCell.du = TextDpi.ToTextDpi(subpageSize.Width);
MS\Internal\PtsHost\ContainerParaClient.cs (2)
59_rect.du -= mbp.MarginLeft + mbp.MarginRight; 61_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\ContainerParagraph.cs (5)
522fsrcToFillSubtrack.du -= mbp.MBPLeft + mbp.MBPRight; 524fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 611fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 741fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 871fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight;
MS\Internal\PtsHost\FigureParaClient.cs (4)
78_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 83_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 145viewportSubpage.du = viewport.du; 196_rect.du -= mbp.MarginLeft + mbp.MarginRight;
MS\Internal\PtsHost\FigureParagraph.cs (5)
390fsrcOverlap.du = duRoundedToNearestColumn; // Round overlap rect to nearest column 400fsrcSearch.du = fsrcOverlap.du; 657fsrcSearch.du = fsrcPage.du; 662fsrcSearch.du = fsrcMargin.du; 667fsrcSearch.du = fsrcTrack.du;
MS\Internal\PtsHost\FloaterParaClient.cs (4)
130viewportSubpage.du = viewport.du; 188_rect.du -= mbp.MarginLeft + mbp.MarginRight; 200_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 205_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
MS\Internal\PtsHost\FloaterParagraph.cs (4)
233fsrcSubpageMargin.du = subpageWidth; 290fsrcSubpageMargin.du = subpageWidth; 327fsbbox.fsrc.du = durFloaterWidth; 510fsbbox.fsrc.du = durFloaterWidth;
MS\Internal\PtsHost\Pts.cs (4)
861internal FSRECT(int inU, int inV, int inDU, int inDV) { u = inU; v=inV; du = inDU; dv = inDV; } 862internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 869du = TextDpi.ToTextDpi(rect.Width); 874u = v = du = dv = 0;
MS\Internal\PtsHost\Section.cs (1)
118fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right);
MS\Internal\PtsHost\SubpageParaClient.cs (3)
92_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 97_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 424viewportSubpage.du = viewport.du;
MS\Internal\PtsHost\SubpageParagraph.cs (5)
198fsrcSubpageMargin.du = subpageWidth; 241fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 284fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 447fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0); 606fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0);
MS\Internal\PtsHost\TableParaClient.cs (1)
97_rect.du -= mbp.MarginLeft + mbp.MarginRight;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
75_rect.du -= mbp.MarginLeft + mbp.MarginRight; 76_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\UIElementParagraph.cs (4)
220fsbbox.fsrc.du = durAvailable; 313fsbbox.fsrc.du = durAvailable; 410fsbbox.fsrc.du = durAvailable; 437fsbbox.fsrc.du = durAvailable;
80 references to du
PresentationFramework (80)
MS\Internal\Documents\ColumnResult.cs (2)
47TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 68TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv));
MS\Internal\PtsHost\CellParaClient.cs (3)
338Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 446TextDpi.FromTextDpi(tpc.Rect.du), 451TextDpi.FromTextDpi(cpc.Rect.du),
MS\Internal\PtsHost\ContainerParaClient.cs (1)
61_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\ContainerParagraph.cs (4)
523fsrcToFillSubtrack.u = Math.Max(Math.Min(fsrcToFillSubtrack.u, fsrcToFill.u + fsrcToFill.du - 1), fsrcToFill.u); 524fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 673durTrack = fsrcToFillSubtrack.du; 803durTrack = fsrcToFillSubtrack.du;
MS\Internal\PtsHost\FigureParaClient.cs (5)
78_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 83_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 145viewportSubpage.du = viewport.du; 472PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 749Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
MS\Internal\PtsHost\FigureParagraph.cs (12)
197if (fsbbox.fsrc.du < subpageWidth && isWidthAuto) 213subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 387int fullColumns = (fsrcOverlap.du / duColumnWidthWithGap); 395fsrcOverlap.u = (fsrcFlow.u + fsrcFlow.du + duGapWidth) - fsrcOverlap.du; 400fsrcSearch.du = fsrcOverlap.du; 542uComparisonPoint = fsrcInColumn.u + fsrcInColumn.du - 1; // du is non-inclusive 546uComparisonPoint = fsrcInColumn.u + (fsrcInColumn.du / 2) - 1; // du is non-inclusive 563int totalMarginRight = (columnLeft + columnDU) - (fsrcInColumn.u + fsrcInColumn.du); 657fsrcSearch.du = fsrcPage.du; 662fsrcSearch.du = fsrcMargin.du; 667fsrcSearch.du = fsrcTrack.du;
MS\Internal\PtsHost\FloaterParaClient.cs (9)
130viewportSubpage.du = viewport.du; 176rcFloater.u = rcHostPara.u + (rcHostPara.du - rcFloater.du) / 2; 200_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 205_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 479PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 758Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv)); 816if(rcFloater.du >= rcHostPara.du)
MS\Internal\PtsHost\FloaterParagraph.cs (4)
267if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 289subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 443if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 459subpageWidth = durSubpageMargin = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors
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\Pts.cs (6)
862internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 883return rect1.u == rect2.u && rect1.v == rect2.v && rect1.du == rect2.du && rect1.dv == rect2.dv; 900return u.GetHashCode() ^ v.GetHashCode() ^ du.GetHashCode() ^ dv.GetHashCode(); 908return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv)); 916return (point.u >= u && point.u <= u + du && point.v >= v && point.v <= v + dv);
MS\Internal\PtsHost\PtsPage.cs (2)
775_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 780_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width);
MS\Internal\PtsHost\SectionVisual.cs (1)
49int gapWidth = (arrayColumnDesc[1].fsrc.u - (arrayColumnDesc[0].fsrc.u + arrayColumnDesc[0].fsrc.du)) / 2;
MS\Internal\PtsHost\SubpageParaClient.cs (4)
92_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 97_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 405PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 424viewportSubpage.du = viewport.du;
MS\Internal\PtsHost\SubpageParagraph.cs (8)
155subpageWidth = fsrcToFill.du; 241fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 284fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 359durTrack = fsrcToFillSubpage.du; 437durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u); 519durTrack = fsrcToFillSubpage.du; 596durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u);
MS\Internal\PtsHost\TableParaClient.cs (8)
639if (u >= rect.u && u <= (rect.u + rect.du) && 646int du = Math.Min(Math.Abs(rect.u - u), Math.Abs(rect.u + rect.du - u)); 989if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 995int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1065if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 1071int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1137return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 2420Math.Max(_rect.du - (mbpInfo.BPRight + mbpInfo.BPLeft), 1),
MS\Internal\PtsHost\TextParaClient.cs (4)
139PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du)); 208localPoint.u = _pageContext.PageRect.du - localPoint.u; 756transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0); 976urDistance = _pageContext.PageRect.du - urDistance;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
76_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 105PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
MS\Internal\PtsHost\UIElementParagraph.cs (3)
224durFloaterWidth = fsbbox.fsrc.du; 304durFloaterWidth = fsbbox.fsrc.du; 318durFloaterWidth = fsbbox.fsrc.du;
MS\Internal\Text\TextDpi.cs (1)
96FromTextDpi(fsrect.du),