46 writes to du
PresentationFramework (46)
MS\Internal\PtsHost\CellParaClient.cs (2)
107_rect.du = TextDpi.ToTextDpi(durCellWidth); 175rectCell.du = TextDpi.ToTextDpi(subpageSize.Width);
MS\Internal\PtsHost\ContainerParaClient.cs (2)
64_rect.du -= mbp.MarginLeft + mbp.MarginRight; 66_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\ContainerParagraph.cs (5)
527fsrcToFillSubtrack.du -= mbp.MBPLeft + mbp.MBPRight; 529fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 616fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 746fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 876fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight;
MS\Internal\PtsHost\FigureParaClient.cs (4)
84_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 89_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 151viewportSubpage.du = viewport.du; 202_rect.du -= mbp.MarginLeft + mbp.MarginRight;
MS\Internal\PtsHost\FigureParagraph.cs (5)
396fsrcOverlap.du = duRoundedToNearestColumn; // Round overlap rect to nearest column 406fsrcSearch.du = fsrcOverlap.du; 663fsrcSearch.du = fsrcPage.du; 668fsrcSearch.du = fsrcMargin.du; 673fsrcSearch.du = fsrcTrack.du;
MS\Internal\PtsHost\FloaterParaClient.cs (4)
135viewportSubpage.du = viewport.du; 193_rect.du -= mbp.MarginLeft + mbp.MarginRight; 205_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 210_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
MS\Internal\PtsHost\FloaterParagraph.cs (4)
237fsrcSubpageMargin.du = subpageWidth; 294fsrcSubpageMargin.du = subpageWidth; 331fsbbox.fsrc.du = durFloaterWidth; 514fsbbox.fsrc.du = durFloaterWidth;
MS\Internal\PtsHost\Pts.cs (4)
866internal FSRECT(int inU, int inV, int inDU, int inDV) { u = inU; v=inV; du = inDU; dv = inDV; } 867internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 874du = TextDpi.ToTextDpi(rect.Width); 879u = v = du = dv = 0;
MS\Internal\PtsHost\Section.cs (1)
120fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right);
MS\Internal\PtsHost\SubpageParaClient.cs (3)
97_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 102_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 429viewportSubpage.du = viewport.du;
MS\Internal\PtsHost\SubpageParagraph.cs (5)
203fsrcSubpageMargin.du = subpageWidth; 246fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 289fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 452fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0); 611fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0);
MS\Internal\PtsHost\TableParaClient.cs (1)
103_rect.du -= mbp.MarginLeft + mbp.MarginRight;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
79_rect.du -= mbp.MarginLeft + mbp.MarginRight; 80_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\UIElementParagraph.cs (4)
223fsbbox.fsrc.du = durAvailable; 316fsbbox.fsrc.du = durAvailable; 413fsbbox.fsrc.du = durAvailable; 440fsbbox.fsrc.du = durAvailable;
80 references to du
PresentationFramework (80)
MS\Internal\Documents\ColumnResult.cs (2)
51TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 72TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv));
MS\Internal\PtsHost\CellParaClient.cs (3)
343Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 451TextDpi.FromTextDpi(tpc.Rect.du), 456TextDpi.FromTextDpi(cpc.Rect.du),
MS\Internal\PtsHost\ContainerParaClient.cs (1)
66_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
MS\Internal\PtsHost\ContainerParagraph.cs (4)
528fsrcToFillSubtrack.u = Math.Max(Math.Min(fsrcToFillSubtrack.u, fsrcToFill.u + fsrcToFill.du - 1), fsrcToFill.u); 529fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 678durTrack = fsrcToFillSubtrack.du; 808durTrack = fsrcToFillSubtrack.du;
MS\Internal\PtsHost\FigureParaClient.cs (5)
84_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 89_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 151viewportSubpage.du = viewport.du; 478PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 755Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
MS\Internal\PtsHost\FigureParagraph.cs (12)
203if (fsbbox.fsrc.du < subpageWidth && isWidthAuto) 219subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 393int fullColumns = (fsrcOverlap.du / duColumnWidthWithGap); 401fsrcOverlap.u = (fsrcFlow.u + fsrcFlow.du + duGapWidth) - fsrcOverlap.du; 406fsrcSearch.du = fsrcOverlap.du; 548uComparisonPoint = fsrcInColumn.u + fsrcInColumn.du - 1; // du is non-inclusive 552uComparisonPoint = fsrcInColumn.u + (fsrcInColumn.du / 2) - 1; // du is non-inclusive 569int totalMarginRight = (columnLeft + columnDU) - (fsrcInColumn.u + fsrcInColumn.du); 663fsrcSearch.du = fsrcPage.du; 668fsrcSearch.du = fsrcMargin.du; 673fsrcSearch.du = fsrcTrack.du;
MS\Internal\PtsHost\FloaterParaClient.cs (9)
135viewportSubpage.du = viewport.du; 181rcFloater.u = rcHostPara.u + (rcHostPara.du - rcFloater.du) / 2; 205_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 210_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 484PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 763Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv)); 821if(rcFloater.du >= rcHostPara.du)
MS\Internal\PtsHost\FloaterParagraph.cs (4)
271if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 293subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 447if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 463subpageWidth = durSubpageMargin = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors
MS\Internal\PtsHost\ListParaClient.cs (1)
101ctx.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)
867internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 888return rect1.u == rect2.u && rect1.v == rect2.v && rect1.du == rect2.du && rect1.dv == rect2.dv; 905return u.GetHashCode() ^ v.GetHashCode() ^ du.GetHashCode() ^ dv.GetHashCode(); 913return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv)); 921return (point.u >= u && point.u <= u + du && point.v >= v && point.v <= v + dv);
MS\Internal\PtsHost\PtsPage.cs (2)
781_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 786_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width);
MS\Internal\PtsHost\SectionVisual.cs (1)
52int gapWidth = (arrayColumnDesc[1].fsrc.u - (arrayColumnDesc[0].fsrc.u + arrayColumnDesc[0].fsrc.du)) / 2;
MS\Internal\PtsHost\SubpageParaClient.cs (4)
97_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 102_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 410PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 429viewportSubpage.du = viewport.du;
MS\Internal\PtsHost\SubpageParagraph.cs (8)
160subpageWidth = fsrcToFill.du; 246fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 289fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 364durTrack = fsrcToFillSubpage.du; 442durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u); 524durTrack = fsrcToFillSubpage.du; 601durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u);
MS\Internal\PtsHost\TableParaClient.cs (8)
645if (u >= rect.u && u <= (rect.u + rect.du) && 652int du = Math.Min(Math.Abs(rect.u - u), Math.Abs(rect.u + rect.du - u)); 995if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 1001int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1071if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 1077int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1143return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 2426Math.Max(_rect.du - (mbpInfo.BPRight + mbpInfo.BPLeft), 1),
MS\Internal\PtsHost\TextParaClient.cs (4)
145PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du)); 214localPoint.u = _pageContext.PageRect.du - localPoint.u; 762transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0); 982urDistance = _pageContext.PageRect.du - urDistance;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
80_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 109PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
MS\Internal\PtsHost\UIElementParagraph.cs (3)
227durFloaterWidth = fsbbox.fsrc.du; 307durFloaterWidth = fsbbox.fsrc.du; 321durFloaterWidth = fsbbox.fsrc.du;
MS\Internal\Text\TextDpi.cs (1)
99FromTextDpi(fsrect.du),