46 writes to du
PresentationFramework (46)
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
119_rect.du = TextDpi.ToTextDpi(durCellWidth); 192rectCell.du = TextDpi.ToTextDpi(subpageSize.Width);
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
75_rect.du -= mbp.MarginLeft + mbp.MarginRight; 77_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (5)
539fsrcToFillSubtrack.du -= mbp.MBPLeft + mbp.MBPRight; 541fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 628fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 765fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight; 902fsbbox.fsrc.du += mbp.MBPLeft + mbp.MBPRight;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (4)
104_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 109_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 178viewportSubpage.du = viewport.du; 229_rect.du -= mbp.MarginLeft + mbp.MarginRight;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (5)
410fsrcOverlap.du = duRoundedToNearestColumn; // Round overlap rect to nearest column 420fsrcSearch.du = fsrcOverlap.du; 685fsrcSearch.du = fsrcPage.du; 690fsrcSearch.du = fsrcMargin.du; 695fsrcSearch.du = fsrcTrack.du;
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (4)
160viewportSubpage.du = viewport.du; 218_rect.du -= mbp.MarginLeft + mbp.MarginRight; 230_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 235_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (4)
245fsrcSubpageMargin.du = subpageWidth; 302fsrcSubpageMargin.du = subpageWidth; 339fsbbox.fsrc.du = durFloaterWidth; 529fsbbox.fsrc.du = durFloaterWidth;
src\Framework\MS\Internal\PtsHost\Pts.cs (4)
905internal FSRECT(int inU, int inV, int inDU, int inDV) { u = inU; v=inV; du = inDU; dv = inDV; } 906internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 913du = TextDpi.ToTextDpi(rect.Width); 918u = v = du = dv = 0;
src\Framework\MS\Internal\PtsHost\Section.cs (1)
124fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
116_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 121_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 481viewportSubpage.du = viewport.du;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (5)
216fsrcSubpageMargin.du = subpageWidth; 259fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 302fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 477fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0); 645fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
115_rect.du -= mbp.MarginLeft + mbp.MarginRight;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
86_rect.du -= mbp.MarginLeft + mbp.MarginRight; 87_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (4)
222fsbbox.fsrc.du = durAvailable; 315fsbbox.fsrc.du = durAvailable; 412fsbbox.fsrc.du = durAvailable; 439fsbbox.fsrc.du = durAvailable;
80 references to du
PresentationFramework (80)
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
61TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv)); 86TextDpi.FromTextDpi(trackDesc.fsrc.du), TextDpi.FromTextDpi(trackDesc.fsrc.dv));
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (3)
370Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 479TextDpi.FromTextDpi(tpc.Rect.du), 484TextDpi.FromTextDpi(cpc.Rect.du),
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (1)
77_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (4)
540fsrcToFillSubtrack.u = Math.Max(Math.Min(fsrcToFillSubtrack.u, fsrcToFill.u + fsrcToFill.du - 1), fsrcToFill.u); 541fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0); 697durTrack = fsrcToFillSubtrack.du; 834durTrack = fsrcToFillSubtrack.du;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (5)
104_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 109_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 178viewportSubpage.du = viewport.du; 529PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (12)
213if (fsbbox.fsrc.du < subpageWidth && isWidthAuto) 229subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 407int fullColumns = (fsrcOverlap.du / duColumnWidthWithGap); 415fsrcOverlap.u = (fsrcFlow.u + fsrcFlow.du + duGapWidth) - fsrcOverlap.du; 420fsrcSearch.du = fsrcOverlap.du; 570uComparisonPoint = fsrcInColumn.u + fsrcInColumn.du - 1; // du is non-inclusive 574uComparisonPoint = fsrcInColumn.u + (fsrcInColumn.du / 2) - 1; // du is non-inclusive 591int totalMarginRight = (columnLeft + columnDU) - (fsrcInColumn.u + fsrcInColumn.du); 685fsrcSearch.du = fsrcPage.du; 690fsrcSearch.du = fsrcMargin.du; 695fsrcSearch.du = fsrcTrack.du;
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (9)
160viewportSubpage.du = viewport.du; 206rcFloater.u = rcHostPara.u + (rcHostPara.du - rcFloater.du) / 2; 230_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 235_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 533PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv)); 898if(rcFloater.du >= rcHostPara.du)
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (4)
279if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 301subpageWidth = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors 462if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 478subpageWidth = durSubpageMargin = fsbbox.fsrc.du + 1; // add 1/300px to avoid rounding errors
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\Pts.cs (6)
906internal FSRECT(FSRECT rect) { u = rect.u; v=rect.v; du = rect.du; dv = rect.dv; } 927return rect1.u == rect2.u && rect1.v == rect2.v && rect1.du == rect2.du && rect1.dv == rect2.dv; 944return u.GetHashCode() ^ v.GetHashCode() ^ du.GetHashCode() ^ dv.GetHashCode(); 952return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv)); 960return (point.u >= u && point.u <= u + du && point.v >= v && point.v <= v + dv);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (2)
853_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 858_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width);
src\Framework\MS\Internal\PtsHost\SectionVisual.cs (1)
54int gapWidth = (arrayColumnDesc[1].fsrc.u - (arrayColumnDesc[0].fsrc.u + arrayColumnDesc[0].fsrc.du)) / 2;
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (4)
116_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft); 121_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft); 453PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.u - _contentRect.u, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv); 481viewportSubpage.du = viewport.du;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (8)
173subpageWidth = fsrcToFill.du; 259fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u); 302fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0); 389durTrack = fsrcToFillSubpage.du; 467durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u); 558durTrack = fsrcToFillSubpage.du; 635durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (8)
694if (u >= rect.u && u <= (rect.u + rect.du) && 701int du = Math.Min(Math.Abs(rect.u - u), Math.Abs(rect.u + rect.du - u)); 1069if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 1075int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1151if(suggestedU >= cpc.Rect.u && suggestedU <= (cpc.Rect.u + cpc.Rect.du)) 1157int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1230return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du), 2547Math.Max(_rect.du - (mbpInfo.BPRight + mbpInfo.BPLeft), 1),
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
157PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du)); 245localPoint.u = _pageContext.PageRect.du - localPoint.u; 871transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0); 1130urDistance = _pageContext.PageRect.du - urDistance;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
87_rect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du); 116PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.u + _rect.du));
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (3)
226durFloaterWidth = fsbbox.fsrc.du; 306durFloaterWidth = fsbbox.fsrc.du; 320durFloaterWidth = fsbbox.fsrc.du;
src\Framework\MS\Internal\Text\TextDpi.cs (1)
102FromTextDpi(fsrect.du),