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