7 writes to Y
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\GraphicsPathTests.cs (2)
2264fPoint.Y = 1; 2292fPoint.Y = 31.0f;
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
228centralPoint.Y = float.NegativeInfinity;
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
179pPtfContainer->Y = HM2Pix(pPtlHimetric->y, s_logPixelsY); 184pPtfContainer->Y = HM2Pix(pPtlHimetric->y, s_logPixelsY);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
95pPtfContainer->Y = WebBrowserHelper.HM2Pix(pPtlHimetric->y, WebBrowserHelper.LogPixelsY); 100pPtfContainer->Y = WebBrowserHelper.HM2Pix(pPtlHimetric->y, WebBrowserHelper.LogPixelsY);
72 references to Y
PresentationCore.Tests (3)
FluentAssertions\FluentAssertExtensions.cs (3)
77parent.Subject.Y.Should().BeApproximately(expectedValue.Y, precision, because, becauseArgs); 97&& ComparisonHelpers.EqualsFloating(expected.Y, actual.Y, precision),
System.Drawing.Common (31)
System\Drawing\Drawing2D\GraphicsPath.cs (9)
262public bool IsVisible(PointF pt, Graphics? graphics) => IsVisible(pt.X, pt.Y, graphics); 293public bool IsOutlineVisible(PointF pt, Pen pen, Graphics? graphics) => IsOutlineVisible(pt.X, pt.Y, pen, graphics); 303public void AddLine(PointF pt1, PointF pt2) => AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y); 389AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y); 778AddString(s, family, style, emSize, new RectangleF(origin.X, origin.Y, 0, 0), format);
System\Drawing\Drawing2D\Matrix.cs (5)
158public float OffsetY => Offset.Y; 224status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.X, point.Y, (GdiPlus.MatrixOrder)order); 226status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.X, -point.Y, (GdiPlus.MatrixOrder)order); 230status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.X, -point.Y, (GdiPlus.MatrixOrder)order); 232status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.X, point.Y, (GdiPlus.MatrixOrder)order);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
386PInvokeGdiPlus.GdipSetPathGradientFocusScales(NativePathGradient, value.X, value.Y).ThrowIfFailed();
System\Drawing\Graphics.cs (13)
596public bool IsVisible(PointF point) => IsVisible(point.X, point.Y); 700DrawBezier(pen, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y); 1608DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), null); 1613DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), null); 1657DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), format); 1662DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), format); 1996public void DrawImage(Image image, PointF point) => DrawImage(image, point.X, point.Y); 2360public void DrawLine(Pen pen, PointF pt1, PointF pt2) => DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y); 3348PInvokeCore.OffsetViewportOrgEx(hdc, (int)offset.X, (int)offset.Y, lppt: null);
System\Drawing\Icon.cs (2)
369copy.Y += (int)offset.Y; 385copy.Y += (int)offset.Y;
System\Drawing\Region.cs (1)
291point.Y,
System.Drawing.Common.Tests (11)
mono\System.Drawing\GraphicsTests.cs (1)
2956Assert.Equal(i, ptf[i].Y);
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
149Assert.Equal(1f, gp.PathData.Points[0].Y); 153Assert.Equal(1f, gp.PathData.Points[0].Y); 162Assert.Equal(1f, gp.PathPoints[0].Y); 166Assert.Equal(1f, gp.PathPoints[0].Y); 724gpi.AddRectangle(new Rectangle((int)endI.X, (int)endI.Y, 1, 1)); 735gpf.AddRectangle(new RectangleF(endF.X, endF.Y, 1, 1)); 2217Assert.Equal(float.NaN, path.PathPoints[0].Y); 2219Assert.Equal(float.NaN, path.PathPoints[1].Y); 2221Assert.Equal(float.NaN, path.PathPoints[2].Y);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
231Assert.Equal(float.NegativeInfinity, brush.CenterPoint.Y);
System.Drawing.Primitives (17)
System\Drawing\Point.cs (3)
123public static Point Ceiling(PointF value) => new Point(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y))); 128public static Point Truncate(PointF value) => new Point(unchecked((int)value.X), unchecked((int)value.Y)); 133public static Point Round(PointF value) => new Point(unchecked((int)Math.Round(value.X)), unchecked((int)Math.Round(value.Y)));
System\Drawing\PointF.cs (9)
105/// <see cref='System.Drawing.PointF.X'/> and <see cref='System.Drawing.PointF.Y'/> properties of the two 108public static bool operator ==(PointF left, PointF right) => left.X == right.X && left.Y == right.Y; 112/// <see cref='System.Drawing.PointF.X'/> or <see cref='System.Drawing.PointF.Y'/> properties of the two 120public static PointF Add(PointF pt, Size sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 125public static PointF Subtract(PointF pt, Size sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height); 130public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 135public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height); 141public override readonly int GetHashCode() => HashCode.Combine(X.GetHashCode(), Y.GetHashCode());
System\Drawing\RectangleF.cs (4)
46y = location.Y; 95Y = value.Y; 214public readonly bool Contains(PointF pt) => Contains(pt.X, pt.Y); 308public void Offset(PointF pos) => Offset(pos.X, pos.Y);
System\Drawing\SizeF.cs (1)
42height = pt.Y;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
208value.Y).Write(writer);
System.Private.Windows.Core.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
80parent.Subject.Y.Should().BeApproximately(expectedValue.Y, precision, because, becauseArgs); 100&& ComparisonHelpers.EqualsFloating(expected.Y, actual.Y, precision),
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1084sz.Height = (int)pcont.Y;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
196pPtlHimetric->y = Pix2HM((int)pPtfContainer->Y, s_logPixelsY); 201pPtlHimetric->y = Pix2HM((int)pPtfContainer->Y, s_logPixelsY);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1119sz.Height = (int)pcont.Y;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
112pPtlHimetric->y = WebBrowserHelper.Pix2HM((int)pPtfContainer->Y, WebBrowserHelper.LogPixelsY); 117pPtlHimetric->y = WebBrowserHelper.Pix2HM((int)pPtfContainer->Y, WebBrowserHelper.LogPixelsY);