6 writes to X
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (2)
160
printableArea.
X
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX;
169
printableArea.
X
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY;
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
94
X
= value.X;
233
X
-= x;
261
X
= result.X;
315
X
+= x;
124 references to X
PresentationCore.Tests (3)
FluentAssertions\FluentAssertExtensions.cs (3)
35
parent.Subject.X.Should().BeApproximately(expectedValue.
X
, precision, because, becauseArgs);
57
ComparisonHelpers.EqualsFloating(expected.
X
, actual.
X
, 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();
70
dstRect.
X
,
System.Drawing.Common.Tests (62)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
52
Assert.Equal(0, rect.
X
);
118
Assert.Equal(0, rect.
X
);
184
Assert.Equal(0, rect.
X
);
370
Assert.Equal(0, rect.
X
);
501
Assert.Equal(0, rect.
X
);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
49
Assert.Equal(0, rect.
X
);
mono\System.Drawing.Imaging\IconCodecTests.cs (6)
86
Assert.Equal(0, rect.
X
);
234
Assert.Equal(0, rect.
X
);
439
Assert.Equal(0, rect.
X
);
661
Assert.Equal(0, rect.
X
);
919
Assert.Equal(0, rect.
X
);
1853
Assert.Equal(0, rect.
X
);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
51
Assert.Equal(0, rect.
X
);
178
Assert.Equal(0, rect.
X
);
mono\System.Drawing.Imaging\PngCodecTests.cs (3)
57
Assert.Equal(0, rect.
X
);
259
Assert.Equal(0, rect.
X
);
381
Assert.Equal(0, rect.
X
);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
51
Assert.Equal(0, rect.
X
);
mono\System.Drawing\GraphicsTests.cs (36)
156
Assert.Equal(50, rects[0].
X
);
184
Assert.Equal(10, _rects[0].
X
);
189
Assert.Equal(10, _rects[1].
X
);
194
Assert.Equal(10, _rects[2].
X
);
211
Assert.Equal(290, _rects[0].
X
);
229
Assert.Equal(-4194304, _rects[0].
X
);
246
Assert.Equal(50, rects[0].
X
);
258
Assert.Equal(50, rects[0].
X
);
270
Assert.Equal(50, rects[0].
X
);
321
Assert.Equal(0, (int)g.ClipBounds.
X
);
369
AssertEquals(msg + ".compare.X", b1.
X
, b2.
X
);
381
Assert.Equal(0, bounds.
X
);
396
Assert.Equal(-12.2200003f, bounds.
X
);
411
Assert.Equal(0, bounds.
X
);
442
AssertEquals(msg + ".X", x, bounds.
X
, 1);
2032
Assert.Equal(sb.
X
, zb.
X
);
2044
Assert.Equal(mb.
X
, zb.
X
);
2062
Assert.Equal(-4194304.0f, mb.
X
);
2073
Assert.Equal(-4194304.0f, mb.
X
);
2203
Assert.Equal(0, noclip.
X
);
2211
Assert.Equal(0, clip.
X
);
2218
Assert.Equal(0, rotclip.
X
);
2236
Assert.Equal(0, noclip.
X
);
2244
Assert.Equal(0, clipbound.
X
);
2250
Assert.Equal(0, clip.
X
);
2257
Assert.Equal(0, rotclipbound.
X
);
2263
Assert.Equal(0, rotclip.
X
);
2281
Assert.Equal(0, vcb.
X
);
2288
Assert.Equal(0, rvcb.
X
);
2300
Assert.Equal(0, vcb.
X
);
2307
Assert.Equal(0, svcb.
X
);
2319
Assert.Equal(0, vcb.
X
);
2326
Assert.Equal(25, tvcb.
X
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
41
Assert.Equal(float.PositiveInfinity, brush.Rectangle.
X
);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
459
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.
X
, 0);
482
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.
X
, 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)
182
(int)Math.Ceiling(value.
X
),
197
(int)value.
X
,
212
(int)Math.Round(value.
X
),
System\Drawing\RectangleF.cs (26)
91
readonly get => new PointF(
X
, Y);
156
public readonly float Left =>
X
;
170
public readonly float Right =>
X
+ Width;
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);
261
X = result.
X
;
273
float x1 = Math.Max(a.
X
, b.
X
);
274
float 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);
297
float x1 = Math.Min(a.
X
, b.
X
);
298
float x2 = Math.Max(a.
X
+ a.Width, b.
X
+ b.Width);
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)
228
value.
X
,
System.Private.Windows.Core.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
38
parent.Subject.X.Should().BeApproximately(expectedValue.
X
, precision, because, becauseArgs);
60
ComparisonHelpers.EqualsFloating(expected.
X
, actual.
X
, precision)
System.Windows.Forms (2)
System\Windows\Forms\Layout\TableLayout.cs (2)
1188
float startX = isContainerRTL ? displayRectF.Right : displayRectF.
X
;
1209
startX = isContainerRTL ? displayRectF.Right : displayRectF.
X
;