64 references to Y
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)
3175
set => SetBounds(_x, value, _width, _height, BoundsSpecified.
Y
);
5257
if ((specified & BoundsSpecified.
Y
) != 0)
9691
specified &= ~(BoundsSpecified.
Y
| BoundsSpecified.Height);
9971
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)
296
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)
2437
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2443
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2449
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2455
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2477
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
Y
, Rectangle.Empty };
2483
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2489
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2495
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2501
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2610
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2616
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2622
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2628
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2699
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2705
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2711
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2717
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2749
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2755
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2761
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2767
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
2799
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Y
, new Rectangle(1, 0, 3, 4) };
2805
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Y
, new Rectangle(1, 2, 3, 4) };
2811
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Y
, new Rectangle(1, 6, 3, 4) };
2817
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Y
, new Rectangle(1, -6, 3, 4) };
8094
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8095
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Y
, 0, -2, 0, 0, 0 };
8096
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8098
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8099
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0 };
8102
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Y
, 0, 2, 0, 0, 0 };
8471
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8472
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Y
, 0, -2, 0, 0, 0, 1 };
8473
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0, 1 };
8475
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Y
, 0, 2, 0, 0, 0, 1 };
8476
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8478
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Y
, 0, 0, 0, 0, 0, 0 };
8479
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) };