64 references to X
System.Windows.Forms (10)
System\Windows\Forms\BoundsSpecified.cs (2)
34
/// Both <see cref="
X
"/> and <see cref="Y"/> coordinates of the
37
Location =
X
| Y,
System\Windows\Forms\Control.cs (4)
2409
set => SetBounds(value, _y, _width, _height, BoundsSpecified.
X
);
5252
if ((specified & BoundsSpecified.
X
) != 0)
9686
specified &= ~(BoundsSpecified.
X
| BoundsSpecified.Width);
9966
if ((specified & BoundsSpecified.
X
) == BoundsSpecified.None)
System\Windows\Forms\Form.cs (3)
5175
_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.
X
| BoundsSpecified.Y));
5180
if ((specified & BoundsSpecified.
X
) != 0)
5204
if ((specified & BoundsSpecified.
X
) != 0)
System\Windows\Forms\Layout\CommonProperties.cs (1)
295
bool xChangedButNotSpecified = ((specified & BoundsSpecified.
X
) == BoundsSpecified.None) & x != originalBounds.X;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
736
specified |= BoundsSpecified.
X
;
776
if (((specified & BoundsSpecified.
X
) == BoundsSpecified.
X
) &&
System.Windows.Forms.Tests (51)
System\Windows\Forms\ControlTests.Methods.cs (43)
2436
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2442
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2448
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2454
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2476
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
X
, Rectangle.Empty };
2482
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2488
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2494
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2500
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2609
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2615
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2621
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2627
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2698
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2704
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2710
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2716
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2748
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2754
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2760
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2766
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2798
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2804
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2810
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2816
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
8084
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8085
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0 };
8086
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8087
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8088
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8089
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8090
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8091
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8092
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8461
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8462
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0, 1 };
8463
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8464
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8465
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8466
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8467
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8468
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8469
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
System\Windows\Forms\ScrollBarTests.cs (8)
1775
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
1781
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
1787
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
1793
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
1823
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
1829
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
1835
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
1841
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };