63 references to Y
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)
3176
set => SetBounds(_x, value, _width, _height, BoundsSpecified.
Y
);
5298
if ((specified & BoundsSpecified.
Y
) != 0)
10004
if ((specified & BoundsSpecified.
Y
) == BoundsSpecified.None)
System\Windows\Forms\Form.cs (3)
5175
_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.X | BoundsSpecified.
Y
));
5185
if ((specified & BoundsSpecified.
Y
) != 0)
5209
if ((specified & BoundsSpecified.
Y
) != 0)
System\Windows\Forms\Layout\CommonProperties.cs (1)
291
bool yChangedButNotSpecified = ((specified & BoundsSpecified.
Y
) == BoundsSpecified.None) & y != originalBounds.Y;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
701
specified |= BoundsSpecified.
Y
;
782
if (((specified & BoundsSpecified.
Y
) == BoundsSpecified.
Y
) &&
System.Windows.Forms.Tests (51)
System\Windows\Forms\ControlTests.Methods.cs (43)
2446
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2452
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2458
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2464
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2486
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
Y
, Rectangle.Empty };
2492
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2498
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2504
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2510
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2619
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2625
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2631
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2637
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2708
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2714
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2720
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2726
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2758
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2764
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2770
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2808
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2814
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2820
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2826
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
8103
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8104
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Y
, 0, -2, 0, 0, 0 };
8105
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8106
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8107
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8108
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8109
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8110
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8111
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8480
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8481
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Y
, 0, -2, 0, 0, 0, 1 };
8482
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8483
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0, 1 };
8484
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0, 1 };
8485
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8486
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8487
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Y
, 0, 2, 0, 0, 0, 1 };
System\Windows\Forms\ScrollBarTests.cs (8)
1776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
1782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
1788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
1794
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
1824
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
1830
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
1836
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
1842
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };