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