39 writes to u
PresentationFramework (39)
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
117
_rect.
u
= du + rcTable.u;
190
rectCell.
u
= rectCell.v = 0;
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (1)
74
_rect.
u
+= mbp.MarginLeft;
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (5)
538
fsrcToFillSubtrack.
u
+= mbp.MBPLeft;
540
fsrcToFillSubtrack.
u
= Math.Max(Math.Min(fsrcToFillSubtrack.u, fsrcToFill.u + fsrcToFill.du - 1), fsrcToFill.u);
627
fsbbox.fsrc.
u
-= mbp.MBPLeft;
764
fsbbox.fsrc.
u
-= mbp.MBPLeft;
901
fsbbox.fsrc.
u
-= mbp.MBPLeft;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (4)
103
_contentRect.
u
= _rect.u + mbp.BPLeft;
108
_paddingRect.
u
= _rect.u + mbp.BorderLeft;
176
viewportSubpage.
u
= viewport.u - ContentRect.u;
228
_rect.
u
+= mbp.MarginLeft;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (7)
382
fsrcFlow.
u
+= CalculateParagraphToColumnOffset(horizAnchor, fsrcFigurePreliminary);
386
fsrcFlow.
u
+= TextDpi.ToTextDpi(element.HorizontalOffset);
415
fsrcOverlap.
u
= (fsrcFlow.u + fsrcFlow.du + duGapWidth) - fsrcOverlap.du;
419
fsrcSearch.
u
= fsrcOverlap.u;
684
fsrcSearch.
u
= fsrcPage.u;
689
fsrcSearch.
u
= fsrcMargin.u;
694
fsrcSearch.
u
= fsrcTrack.u;
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (5)
158
viewportSubpage.
u
= viewport.u - ContentRect.u;
206
rcFloater.
u
= rcHostPara.u + (rcHostPara.du - rcFloater.du) / 2;
217
_rect.
u
+= mbp.MarginLeft;
229
_contentRect.
u
= _rect.u + mbp.BPLeft;
234
_paddingRect.
u
= _rect.u + mbp.BorderLeft;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (2)
337
fsbbox.fsrc.
u
= 0;
527
fsbbox.fsrc.
u
= 0;
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; }
911
u
= TextDpi.ToTextDpi(rect.Left);
918
u
= v = du = dv = 0;
src\Framework\MS\Internal\PtsHost\Section.cs (1)
122
fsrcMargin.
u
= TextDpi.ToTextDpi(pageMargin.Left);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
115
_contentRect.
u
= _rect.u + mbp.BPLeft;
120
_paddingRect.
u
= _rect.u + mbp.BorderLeft;
479
viewportSubpage.
u
= viewport.u - ContentRect.u;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
300
fsbbox.fsrc.
u
= fsrcToFill.u + mbp.MarginLeft;
475
fsbbox.fsrc.
u
= urTrack + mbp.MarginLeft;
643
fsbbox.fsrc.
u
= urTrack + mbp.MarginLeft;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
114
_rect.
u
+= mbp.MarginLeft;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (1)
85
_rect.
u
+= mbp.MarginLeft;
93 references to u
PresentationFramework (93)
src\Framework\MS\Internal\Documents\ColumnResult.cs (4)
60
TextDpi.FromTextDpi(trackDesc.fsrc.
u
), TextDpi.FromTextDpi(trackDesc.fsrc.v),
64
_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.
u
), TextDpi.FromTextDpi(trackDesc.fsrc.v));
85
TextDpi.FromTextDpi(trackDesc.fsrc.
u
), TextDpi.FromTextDpi(trackDesc.fsrc.v),
89
_columnOffset = new Vector(TextDpi.FromTextDpi(trackDesc.fsrc.
u
), TextDpi.FromTextDpi(trackDesc.fsrc.v));
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
2596
positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - TextDpi.FromTextDpi(cpcCur.Rect.
u
), ref count);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (5)
117
_rect.u = du + rcTable.
u
;
360
transform = new TranslateTransform(-TextDpi.FromTextDpi(ContentRect.
u
), -TextDpi.FromTextDpi(ContentRect.v));
373
transform = new TranslateTransform(TextDpi.FromTextDpi(ContentRect.
u
), TextDpi.FromTextDpi(ContentRect.v));
477
_rectTable = new Rect(TextDpi.FromTextDpi(tpc.Rect.
u
),
482
_rectCell = new Rect(TextDpi.FromTextDpi(cpc.Rect.
u
),
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (5)
540
fsrcToFillSubtrack.u = Math.Max(Math.Min(fsrcToFillSubtrack.
u
, fsrcToFill.
u
+ fsrcToFill.du - 1), fsrcToFill.
u
);
696
urTrack = fsrcToFillSubtrack.
u
;
833
urTrack = fsrcToFillSubtrack.
u
;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (10)
103
_contentRect.u = _rect.
u
+ mbp.BPLeft;
108
_paddingRect.u = _rect.
u
+ mbp.BorderLeft;
176
viewportSubpage.u = viewport.
u
- ContentRect.
u
;
278
pt = new PTS.FSPOINT(pt.u - ContentRect.
u
, pt.v - ContentRect.v);
379
rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.
u
), TextDpi.FromTextDpi(ContentRect.v));
526
pageContentVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
527
floatingElementsVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
529
PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.
u
- _contentRect.
u
, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (12)
415
fsrcOverlap.u = (fsrcFlow.
u
+ fsrcFlow.du + duGapWidth) - fsrcOverlap.du;
419
fsrcSearch.u = fsrcOverlap.
u
;
566
uComparisonPoint = fsrcInColumn.
u
;
570
uComparisonPoint = fsrcInColumn.
u
+ fsrcInColumn.du - 1; // du is non-inclusive
574
uComparisonPoint = fsrcInColumn.
u
+ (fsrcInColumn.du / 2) - 1; // du is non-inclusive
586
int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.
u
) / duColumnTotal;
587
int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.
u
+ affectedColumn * duColumnTotal;
590
int totalMarginLeft = columnLeft - fsrcInColumn.
u
;
591
int totalMarginRight = (columnLeft + columnDU) - (fsrcInColumn.
u
+ fsrcInColumn.du);
684
fsrcSearch.u = fsrcPage.
u
;
689
fsrcSearch.u = fsrcMargin.
u
;
694
fsrcSearch.u = fsrcTrack.
u
;
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (11)
158
viewportSubpage.u = viewport.
u
- ContentRect.
u
;
206
rcFloater.u = rcHostPara.
u
+ (rcHostPara.du - rcFloater.du) / 2;
229
_contentRect.u = _rect.
u
+ mbp.BPLeft;
234
_paddingRect.u = _rect.
u
+ mbp.BorderLeft;
280
pt = new PTS.FSPOINT(pt.u - ContentRect.
u
, pt.v - ContentRect.v);
381
rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.
u
), TextDpi.FromTextDpi(ContentRect.v));
530
pageContentVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
531
floatingElementsVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
533
PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.
u
- _contentRect.
u
, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (2)
111
ctx.PushTransform(new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * listItemParaClient.Rect.
u
+ listItemParaClient.Rect.du), 0.0));
124
listMarkerLine.FormatAndDrawVisual(ctx, lineProps, listItemParaClient.Rect.
u
, dvBaseline);
src\Framework\MS\Internal\PtsHost\Pts.cs (7)
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\SectionVisual.cs (3)
54
int gapWidth = (arrayColumnDesc[1].fsrc.
u
- (arrayColumnDesc[0].fsrc.
u
+ arrayColumnDesc[0].fsrc.du)) / 2;
58
double u = TextDpi.FromTextDpi(arrayColumnDesc[index].fsrc.
u
- gapWidth);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (10)
115
_contentRect.u = _rect.
u
+ mbp.BPLeft;
120
_paddingRect.u = _rect.
u
+ mbp.BorderLeft;
202
pt = new PTS.FSPOINT(pt.u - ContentRect.
u
, pt.v - ContentRect.v);
305
rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.
u
), TextDpi.FromTextDpi(ContentRect.v));
450
pageContentVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
451
floatingElementsVisual.Offset = new PTS.FSVECTOR(ContentRect.
u
, ContentRect.v).FromTextDpi();
453
PTS.FSRECT clipRect = new PTS.FSRECT(_paddingRect.
u
- _contentRect.
u
, _paddingRect.v - _contentRect.v, _paddingRect.du, _paddingRect.dv);
479
viewportSubpage.u = viewport.
u
- ContentRect.
u
;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (6)
259
fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.
u
);
300
fsbbox.fsrc.u = fsrcToFill.
u
+ mbp.MarginLeft;
388
urTrack = fsrcToFillSubpage.
u
;
467
durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.
u
);
557
urTrack = fsrcToFillSubpage.
u
;
635
durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.
u
);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (12)
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),
2545
return new PTS.FSRECT(_rect.
u
+ mbpInfo.BPLeft,
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
157
PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.
u
+ pageRect.du));
871
transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.
u
+ _pageContext.PageRect.du), 0.0);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
116
PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, _visual, TextDpi.FromTextDpi(2 * _rect.
u
+ _rect.du));
136
uiElementIsland.Offset = new PTS.FSVECTOR(_rect.
u
+ mbp.BPLeft, _rect.v + mbp.BPTop).FromTextDpi();
src\Framework\MS\Internal\Text\TextDpi.cs (1)
100
FromTextDpi(fsrect.
u
),