5 writes to X
System.Drawing.Common.Tests (1)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
227centralPoint.X = float.NaN;
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
178pPtfContainer->X = HM2Pix(pPtlHimetric->x, s_logPixelsX); 183pPtfContainer->X = HM2Pix(pPtlHimetric->x, s_logPixelsX);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
94pPtfContainer->X = WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX); 99pPtfContainer->X = WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX);
44 references to X
PresentationCore (1)
System\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
147value.X,
PresentationCore.Tests (5)
BinaryFormat\SystemDrawingTests.cs (2)
19Assert.Equal(input.X, ((PointF)read!).X);
FluentAssertions\FluentAssertExtensions.cs (3)
76parent.Subject.X.Should().BeApproximately(expectedValue.X, precision, because, becauseArgs); 96ComparisonHelpers.EqualsFloating(expected.X, actual.X, precision)
System.Drawing.Common.Tests (11)
mono\System.Drawing\GraphicsTests.cs (1)
2955Assert.Equal(i, ptf[i].X);
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
148Assert.Equal(1f, gp.PathData.Points[0].X); 152Assert.Equal(1f, gp.PathData.Points[0].X); 161Assert.Equal(1f, gp.PathPoints[0].X); 165Assert.Equal(1f, gp.PathPoints[0].X); 724gpi.AddRectangle(new Rectangle((int)endI.X, (int)endI.Y, 1, 1)); 735gpf.AddRectangle(new RectangleF(endF.X, endF.Y, 1, 1)); 2216Assert.Equal(float.NaN, path.PathPoints[0].X); 2218Assert.Equal(float.NaN, path.PathPoints[1].X); 2220Assert.Equal(float.NaN, path.PathPoints[2].X);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
230Assert.Equal(float.NaN, brush.CenterPoint.X);
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)
45x = location.X; 94X = value.X; 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)
41width = pt.X;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
207value.X,
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1083sz.Width = (int)pcont.X;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
195pPtlHimetric->x = Pix2HM((int)pPtfContainer->X, s_logPixelsX); 200pPtlHimetric->x = Pix2HM((int)pPtfContainer->X, s_logPixelsX);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1118sz.Width = (int)pcont.X;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
111pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->X, WebBrowserHelper.LogPixelsX); 116pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->X, WebBrowserHelper.LogPixelsX);
System.Windows.Forms.Primitives.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
79parent.Subject.X.Should().BeApproximately(expectedValue.X, precision, because, becauseArgs); 99ComparisonHelpers.EqualsFloating(expected.X, actual.X, precision)