63 references to X
System.Windows.Forms (9)
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 (3)
2409
set => SetBounds(value, _y, _width, _height, BoundsSpecified.
X
);
5292
if ((specified & BoundsSpecified.
X
) != 0)
9998
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)
290
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)
2403
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2409
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2415
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2421
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2443
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
X
, Rectangle.Empty };
2449
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2455
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2461
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2467
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2576
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2582
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2588
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2594
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2665
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2671
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2677
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2683
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2715
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2721
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2727
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2733
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2765
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2771
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
8051
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8052
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0 };
8053
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8054
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8055
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8056
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8057
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8058
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8059
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8428
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8429
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0, 1 };
8430
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8431
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8432
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8433
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8434
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8435
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8436
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) };