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