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)
2410
set => SetBounds(value, _y, _width, _height, BoundsSpecified.
X
);
5293
if ((specified & BoundsSpecified.
X
) != 0)
9999
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)
2445
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2451
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2457
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2463
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2485
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
X
, Rectangle.Empty };
2491
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2497
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2503
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2509
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2618
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2624
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2630
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2636
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2707
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2713
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2719
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2725
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2757
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2763
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2769
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2775
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
2807
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
X
, new Rectangle(0, 2, 3, 4) };
2813
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
X
, new Rectangle(1, 2, 3, 4) };
2819
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
X
, new Rectangle(2, 2, 3, 4) };
2825
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
X
, new Rectangle(-2, 2, 3, 4) };
8093
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8094
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0 };
8095
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8096
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8098
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8099
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
X
, 1, 0, 0, 0, 0 };
8470
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8471
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
X
, -1, 0, 0, 0, 0, 1 };
8472
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8473
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
X
, 1, 0, 0, 0, 0, 1 };
8475
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8476
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
X
, 0, 0, 0, 0, 0, 0 };
8478
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) };