5 writes to X
System.Drawing.Common.Tests (1)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
227
centralPoint.
X
= float.NaN;
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
178
pPtfContainer->
X
= HM2Pix(pPtlHimetric->x, s_logPixelsX);
183
pPtfContainer->
X
= HM2Pix(pPtlHimetric->x, s_logPixelsX);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
94
pPtfContainer->
X
= WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX);
99
pPtfContainer->
X
= WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX);
72 references to X
PresentationCore.Tests (3)
FluentAssertions\FluentAssertExtensions.cs (3)
76
parent.Subject.X.Should().BeApproximately(expectedValue.
X
, precision, because, becauseArgs);
96
ComparisonHelpers.EqualsFloating(expected.
X
, actual.
X
, precision)
System.Drawing.Common (31)
System\Drawing\Drawing2D\GraphicsPath.cs (9)
262
public bool IsVisible(PointF pt, Graphics? graphics) => IsVisible(pt.
X
, pt.Y, graphics);
293
public bool IsOutlineVisible(PointF pt, Pen pen, Graphics? graphics) => IsOutlineVisible(pt.
X
, pt.Y, pen, graphics);
303
public void AddLine(PointF pt1, PointF pt2) => AddLine(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
389
AddBezier(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
778
AddString(s, family, style, emSize, new RectangleF(origin.
X
, origin.Y, 0, 0), format);
System\Drawing\Drawing2D\Matrix.cs (5)
156
public float OffsetX => Offset.
X
;
224
status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.
X
, point.Y, (GdiPlus.MatrixOrder)order);
226
status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.
X
, -point.Y, (GdiPlus.MatrixOrder)order);
230
status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.
X
, -point.Y, (GdiPlus.MatrixOrder)order);
232
status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.
X
, point.Y, (GdiPlus.MatrixOrder)order);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
386
PInvokeGdiPlus.GdipSetPathGradientFocusScales(NativePathGradient, value.
X
, value.Y).ThrowIfFailed();
System\Drawing\Graphics.cs (13)
596
public bool IsVisible(PointF point) => IsVisible(point.
X
, point.Y);
700
DrawBezier(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
1608
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), null);
1613
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), null);
1657
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), format);
1662
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), format);
1996
public void DrawImage(Image image, PointF point) => DrawImage(image, point.
X
, point.Y);
2360
public void DrawLine(Pen pen, PointF pt1, PointF pt2) => DrawLine(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
3348
PInvokeCore.OffsetViewportOrgEx(hdc, (int)offset.
X
, (int)offset.Y, lppt: null);
System\Drawing\Icon.cs (2)
368
copy.X += (int)offset.
X
;
384
copy.X += (int)offset.
X
;
System\Drawing\Region.cs (1)
290
point.
X
,
System.Drawing.Common.Tests (11)
mono\System.Drawing\GraphicsTests.cs (1)
2955
Assert.Equal(i, ptf[i].
X
);
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
148
Assert.Equal(1f, gp.PathData.Points[0].
X
);
152
Assert.Equal(1f, gp.PathData.Points[0].
X
);
161
Assert.Equal(1f, gp.PathPoints[0].
X
);
165
Assert.Equal(1f, gp.PathPoints[0].
X
);
724
gpi.AddRectangle(new Rectangle((int)endI.
X
, (int)endI.Y, 1, 1));
735
gpf.AddRectangle(new RectangleF(endF.
X
, endF.Y, 1, 1));
2216
Assert.Equal(float.NaN, path.PathPoints[0].
X
);
2218
Assert.Equal(float.NaN, path.PathPoints[1].
X
);
2220
Assert.Equal(float.NaN, path.PathPoints[2].
X
);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
230
Assert.Equal(float.NaN, brush.CenterPoint.
X
);
System.Drawing.Primitives (17)
System\Drawing\Point.cs (3)
123
public static Point Ceiling(PointF value) => new Point(unchecked((int)Math.Ceiling(value.
X
)), unchecked((int)Math.Ceiling(value.Y)));
128
public static Point Truncate(PointF value) => new Point(unchecked((int)value.
X
), unchecked((int)value.Y));
133
public 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
108
public 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
120
public static PointF Add(PointF pt, Size sz) => new PointF(pt.
X
+ sz.Width, pt.Y + sz.Height);
125
public static PointF Subtract(PointF pt, Size sz) => new PointF(pt.
X
- sz.Width, pt.Y - sz.Height);
130
public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.
X
+ sz.Width, pt.Y + sz.Height);
135
public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.
X
- sz.Width, pt.Y - sz.Height);
141
public override readonly int GetHashCode() => HashCode.Combine(
X
.GetHashCode(), Y.GetHashCode());
System\Drawing\RectangleF.cs (4)
45
x = location.
X
;
94
X = value.
X
;
214
public readonly bool Contains(PointF pt) => Contains(pt.
X
, pt.Y);
308
public void Offset(PointF pos) => Offset(pos.
X
, pos.Y);
System\Drawing\SizeF.cs (1)
41
width = pt.
X
;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
207
value.
X
,
System.Private.Windows.Core.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
79
parent.Subject.X.Should().BeApproximately(expectedValue.
X
, precision, because, becauseArgs);
99
ComparisonHelpers.EqualsFloating(expected.
X
, actual.
X
, precision)
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1083
sz.Width = (int)pcont.
X
;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
195
pPtlHimetric->x = Pix2HM((int)pPtfContainer->
X
, s_logPixelsX);
200
pPtlHimetric->x = Pix2HM((int)pPtfContainer->
X
, s_logPixelsX);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1118
sz.Width = (int)pcont.
X
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
111
pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->
X
, WebBrowserHelper.LogPixelsX);
116
pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->
X
, WebBrowserHelper.LogPixelsX);