6 writes to Y
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (2)
161
printableArea.
Y
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY;
168
printableArea.
Y
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX;
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
95
Y
= value.Y;
234
Y
-= y;
262
Y
= result.Y;
316
Y
+= y;
123 references to Y
PresentationCore.Tests (3)
FluentAssertions\FluentAssertExtensions.cs (3)
36
parent.Subject.Y.Should().BeApproximately(expectedValue.
Y
, precision, because, becauseArgs);
58
&& ComparisonHelpers.EqualsFloating(expected.
Y
, actual.
Y
, precision)
System.Drawing.Common (24)
System\Drawing\Bitmap.cs (1)
197
rect.X, rect.
Y
, rect.Width, rect.Height,
System\Drawing\Drawing2D\GraphicsPath.cs (4)
374
AddArc(rect.X, rect.
Y
, rect.Width, rect.Height, startAngle, sweepAngle);
614
rect.X, rect.
Y
, rect.Width, rect.Height).ThrowIfFailed();
701
AddEllipse(rect.X, rect.
Y
, rect.Width, rect.Height);
916
srcRect.X, srcRect.
Y
, srcRect.Width, srcRect.Height,
System\Drawing\Graphics.cs (16)
533
CheckStatus(PInvokeGdiPlus.GdipSetClipRect(NativeGraphics, rect.X, rect.
Y
, rect.Width, rect.Height, (GdiPlus.CombineMode)combineMode));
556
rect.X, rect.
Y
, rect.Width, rect.Height,
609
public bool IsVisible(RectangleF rect) => IsVisible(rect.X, rect.
Y
, rect.Width, rect.Height);
667
DrawArc(pen, rect.X, rect.
Y
, rect.Width, rect.Height, startAngle, sweepAngle);
713
public void DrawRectangle(Pen pen, RectangleF rect) => DrawRectangle(pen, rect.X, rect.
Y
, rect.Width, rect.Height);
804
public void DrawEllipse(Pen pen, RectangleF rect) => DrawEllipse(pen, rect.X, rect.
Y
, rect.Width, rect.Height);
830
DrawPie(pen, rect.X, rect.
Y
, rect.Width, rect.Height, startAngle, sweepAngle);
1216
public void FillRectangle(Brush brush, RectangleF rect) => FillRectangle(brush, rect.X, rect.
Y
, rect.Width, rect.Height);
1370
public void FillEllipse(Brush brush, RectangleF rect) => FillEllipse(brush, rect.X, rect.
Y
, rect.Width, rect.Height);
1419
FillPie(brush, rect.X, rect.
Y
, rect.Width, rect.Height, startAngle, sweepAngle);
2006
public void DrawImage(Image image, RectangleF rect) => DrawImage(image, rect.X, rect.
Y
, rect.Width, rect.Height);
2097
srcRect.X, srcRect.
Y
, srcRect.Width, srcRect.Height,
2114
destRect.X, destRect.
Y
, destRect.Width, destRect.Height,
2115
srcRect.X, srcRect.
Y
, srcRect.Width, srcRect.Height,
2143
srcRect.X, srcRect.
Y
, srcRect.Width, srcRect.Height,
2188
srcRect.X, srcRect.
Y
, srcRect.Width, srcRect.Height,
System\Drawing\Region.cs (1)
310
rect.X, rect.
Y
, rect.Width, rect.Height,
System\Drawing\TextureBrush.cs (2)
49
dstRect.X, dstRect.
Y
, dstRect.Width, dstRect.Height, &brush).ThrowIfFailed();
71
dstRect.
Y
,
System.Drawing.Common.Tests (62)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
53
Assert.Equal(0, rect.
Y
);
119
Assert.Equal(0, rect.
Y
);
185
Assert.Equal(0, rect.
Y
);
371
Assert.Equal(0, rect.
Y
);
502
Assert.Equal(0, rect.
Y
);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
50
Assert.Equal(0, rect.
Y
);
mono\System.Drawing.Imaging\IconCodecTests.cs (6)
87
Assert.Equal(0, rect.
Y
);
235
Assert.Equal(0, rect.
Y
);
440
Assert.Equal(0, rect.
Y
);
662
Assert.Equal(0, rect.
Y
);
920
Assert.Equal(0, rect.
Y
);
1854
Assert.Equal(0, rect.
Y
);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
52
Assert.Equal(0, rect.
Y
);
179
Assert.Equal(0, rect.
Y
);
mono\System.Drawing.Imaging\PngCodecTests.cs (3)
58
Assert.Equal(0, rect.
Y
);
260
Assert.Equal(0, rect.
Y
);
382
Assert.Equal(0, rect.
Y
);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
52
Assert.Equal(0, rect.
Y
);
mono\System.Drawing\GraphicsTests.cs (36)
157
Assert.Equal(40, rects[0].
Y
);
185
Assert.Equal(10, _rects[0].
Y
);
190
Assert.Equal(60, _rects[1].
Y
);
195
Assert.Equal(80, _rects[2].
Y
);
212
Assert.Equal(40, _rects[0].
Y
);
230
Assert.Equal(-4194304, _rects[0].
Y
);
247
Assert.Equal(40, rects[0].
Y
);
259
Assert.Equal(40, rects[0].
Y
);
271
Assert.Equal(40, rects[0].
Y
);
322
Assert.Equal(0, (int)g.ClipBounds.
Y
);
370
AssertEquals(msg + ".compare.Y", b1.
Y
, b2.
Y
);
382
Assert.Equal(0, bounds.
Y
);
397
Assert.Equal(-10.1000004f, bounds.
Y
);
412
Assert.Equal(0, bounds.
Y
);
443
AssertEquals(msg + ".Y", y, bounds.
Y
, 1);
2033
Assert.Equal(sb.
Y
, zb.
Y
);
2045
Assert.Equal(mb.
Y
, zb.
Y
);
2063
Assert.Equal(-4194304.0f, mb.
Y
);
2074
Assert.Equal(-4194304.0f, mb.
Y
);
2204
Assert.Equal(0, noclip.
Y
);
2212
Assert.Equal(0, clip.
Y
);
2219
Assert.Equal(-32.0, rotclip.
Y
, 4);
2237
Assert.Equal(0, noclip.
Y
);
2245
Assert.Equal(0, clipbound.
Y
);
2251
Assert.Equal(0, clip.
Y
);
2258
Assert.Equal(-200.0, rotclipbound.
Y
, 4);
2264
Assert.Equal(-100.0, rotclip.
Y
, 4);
2282
Assert.Equal(0, vcb.
Y
);
2289
Assert.Equal(-100.0, rvcb.
Y
, 4);
2301
Assert.Equal(0, vcb.
Y
);
2308
Assert.Equal(0, svcb.
Y
);
2320
Assert.Equal(0, vcb.
Y
);
2327
Assert.Equal(-25, tvcb.
Y
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
42
Assert.Equal(float.NegativeInfinity, brush.Rectangle.
Y
);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
460
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.
Y
, 0);
483
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.
Y
, 0);
System\Drawing\RegionTests.cs (5)
430
region.Complement(new Rectangle((int)rect.X, (int)rect.
Y
, (int)rect.Width, (int)rect.Height));
837
region.Exclude(new Rectangle((int)rect.X, (int)rect.
Y
, (int)rect.Width, (int)rect.Height));
1170
region.Intersect(new Rectangle((int)rect.X, (int)rect.
Y
, (int)rect.Width, (int)rect.Height));
1733
region.Union(new Rectangle((int)rect.X, (int)rect.
Y
, (int)rect.Width, (int)rect.Height));
2091
region.Xor(new Rectangle((int)rect.X, (int)rect.
Y
, (int)rect.Width, (int)rect.Height));
System.Drawing.Primitives (29)
System\Drawing\Rectangle.cs (3)
183
(int)Math.Ceiling(value.
Y
),
198
(int)value.
Y
,
213
(int)Math.Round(value.
Y
),
System\Drawing\RectangleF.cs (26)
91
readonly get => new PointF(X,
Y
);
163
public readonly float Top =>
Y
;
177
public readonly float Bottom =>
Y
+ Height;
197
left.X == right.X && left.
Y
== right.
Y
&& left.Width == right.Width && left.Height == right.Height;
208
public readonly bool Contains(float x, float y) => X <= x && x < X + Width &&
Y
<= y && y <
Y
+ Height;
221
(X <= rect.X) && (rect.X + rect.Width <= X + Width) && (
Y
<= rect.
Y
) && (rect.
Y
+ rect.Height <=
Y
+ Height);
226
public override readonly int GetHashCode() => HashCode.Combine(X,
Y
, Width, Height);
262
Y = result.
Y
;
275
float y1 = Math.Max(a.
Y
, b.
Y
);
276
float y2 = Math.Min(a.
Y
+ a.Height, b.
Y
+ b.Height);
290
(rect.X < X + Width) && (X < rect.X + rect.Width) && (rect.
Y
<
Y
+ Height) && (
Y
< rect.
Y
+ rect.Height);
299
float y1 = Math.Min(a.
Y
, b.
Y
);
300
float y2 = Math.Max(a.
Y
+ a.Height, b.
Y
+ b.Height);
329
public override readonly string ToString() => $"{{X={X},Y={
Y
},Width={Width},Height={Height}}}";
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229
value.
Y
,
System.Private.Windows.Core.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
39
parent.Subject.Y.Should().BeApproximately(expectedValue.
Y
, precision, because, becauseArgs);
61
&& ComparisonHelpers.EqualsFloating(expected.
Y
, actual.
Y
, precision)
System.Windows.Forms (1)
System\Windows\Forms\Layout\TableLayout.cs (1)
1177
float top = displayRectF.
Y
;