6 writes to X
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (2)
160printableArea.X = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX; 169printableArea.X = (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY;
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
94X = value.X; 233X -= x; 261X = result.X; 315X += x;
124 references to X
PresentationCore.Tests (3)
FluentAssertions\FluentAssertExtensions.cs (3)
35parent.Subject.X.Should().BeApproximately(expectedValue.X, precision, because, becauseArgs); 57ComparisonHelpers.EqualsFloating(expected.X, actual.X, precision)
System.Drawing.Common (24)
System\Drawing\Bitmap.cs (1)
197rect.X, rect.Y, rect.Width, rect.Height,
System\Drawing\Drawing2D\GraphicsPath.cs (4)
374AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 614rect.X, rect.Y, rect.Width, rect.Height).ThrowIfFailed(); 701AddEllipse(rect.X, rect.Y, rect.Width, rect.Height); 916srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height,
System\Drawing\Graphics.cs (16)
533CheckStatus(PInvokeGdiPlus.GdipSetClipRect(NativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, (GdiPlus.CombineMode)combineMode)); 556rect.X, rect.Y, rect.Width, rect.Height, 609public bool IsVisible(RectangleF rect) => IsVisible(rect.X, rect.Y, rect.Width, rect.Height); 667DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 713public void DrawRectangle(Pen pen, RectangleF rect) => DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); 804public void DrawEllipse(Pen pen, RectangleF rect) => DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height); 830DrawPie(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 1216public void FillRectangle(Brush brush, RectangleF rect) => FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); 1370public void FillEllipse(Brush brush, RectangleF rect) => FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height); 1419FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 2006public void DrawImage(Image image, RectangleF rect) => DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); 2097srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, 2114destRect.X, destRect.Y, destRect.Width, destRect.Height, 2115srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, 2143srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, 2188srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height,
System\Drawing\Region.cs (1)
310rect.X, rect.Y, rect.Width, rect.Height,
System\Drawing\TextureBrush.cs (2)
49dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &brush).ThrowIfFailed(); 70dstRect.X,
System.Drawing.Common.Tests (62)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
52Assert.Equal(0, rect.X); 118Assert.Equal(0, rect.X); 184Assert.Equal(0, rect.X); 370Assert.Equal(0, rect.X); 501Assert.Equal(0, rect.X);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
49Assert.Equal(0, rect.X);
mono\System.Drawing.Imaging\IconCodecTests.cs (6)
86Assert.Equal(0, rect.X); 234Assert.Equal(0, rect.X); 439Assert.Equal(0, rect.X); 661Assert.Equal(0, rect.X); 919Assert.Equal(0, rect.X); 1853Assert.Equal(0, rect.X);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
51Assert.Equal(0, rect.X); 178Assert.Equal(0, rect.X);
mono\System.Drawing.Imaging\PngCodecTests.cs (3)
57Assert.Equal(0, rect.X); 259Assert.Equal(0, rect.X); 381Assert.Equal(0, rect.X);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
51Assert.Equal(0, rect.X);
mono\System.Drawing\GraphicsTests.cs (36)
156Assert.Equal(50, rects[0].X); 184Assert.Equal(10, _rects[0].X); 189Assert.Equal(10, _rects[1].X); 194Assert.Equal(10, _rects[2].X); 211Assert.Equal(290, _rects[0].X); 229Assert.Equal(-4194304, _rects[0].X); 246Assert.Equal(50, rects[0].X); 258Assert.Equal(50, rects[0].X); 270Assert.Equal(50, rects[0].X); 321Assert.Equal(0, (int)g.ClipBounds.X); 369AssertEquals(msg + ".compare.X", b1.X, b2.X); 381Assert.Equal(0, bounds.X); 396Assert.Equal(-12.2200003f, bounds.X); 411Assert.Equal(0, bounds.X); 442AssertEquals(msg + ".X", x, bounds.X, 1); 2032Assert.Equal(sb.X, zb.X); 2044Assert.Equal(mb.X, zb.X); 2062Assert.Equal(-4194304.0f, mb.X); 2073Assert.Equal(-4194304.0f, mb.X); 2203Assert.Equal(0, noclip.X); 2211Assert.Equal(0, clip.X); 2218Assert.Equal(0, rotclip.X); 2236Assert.Equal(0, noclip.X); 2244Assert.Equal(0, clipbound.X); 2250Assert.Equal(0, clip.X); 2257Assert.Equal(0, rotclipbound.X); 2263Assert.Equal(0, rotclip.X); 2281Assert.Equal(0, vcb.X); 2288Assert.Equal(0, rvcb.X); 2300Assert.Equal(0, vcb.X); 2307Assert.Equal(0, svcb.X); 2319Assert.Equal(0, vcb.X); 2326Assert.Equal(25, tvcb.X);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
41Assert.Equal(float.PositiveInfinity, brush.Rectangle.X);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
459Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0); 482Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0);
System\Drawing\RegionTests.cs (5)
430region.Complement(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 837region.Exclude(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 1170region.Intersect(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 1733region.Union(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 2091region.Xor(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height));
System.Drawing.Primitives (29)
System\Drawing\Rectangle.cs (3)
182(int)Math.Ceiling(value.X), 197(int)value.X, 212(int)Math.Round(value.X),
System\Drawing\RectangleF.cs (26)
91readonly get => new PointF(X, Y); 156public readonly float Left => X; 170public readonly float Right => X + Width; 197left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.Height == right.Height; 208public 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); 226public override readonly int GetHashCode() => HashCode.Combine(X, Y, Width, Height); 261X = result.X; 273float x1 = Math.Max(a.X, b.X); 274float x2 = Math.Min(a.X + a.Width, b.X + b.Width); 290(rect.X < X + Width) && (X < rect.X + rect.Width) && (rect.Y < Y + Height) && (Y < rect.Y + rect.Height); 297float x1 = Math.Min(a.X, b.X); 298float x2 = Math.Max(a.X + a.Width, b.X + b.Width); 329public override readonly string ToString() => $"{{X={X},Y={Y},Width={Width},Height={Height}}}";
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
228value.X,
System.Private.Windows.Core.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
38parent.Subject.X.Should().BeApproximately(expectedValue.X, precision, because, becauseArgs); 60ComparisonHelpers.EqualsFloating(expected.X, actual.X, precision)
System.Windows.Forms (2)
System\Windows\Forms\Layout\TableLayout.cs (2)
1188float startX = isContainerRTL ? displayRectF.Right : displayRectF.X; 1209startX = isContainerRTL ? displayRectF.Right : displayRectF.X;