78 references to Height
System.Windows.Forms (15)
System\Windows\Forms\BoundsSpecified.cs (1)
43
Size = Width |
Height
,
System\Windows\Forms\Control.cs (3)
2245
set => SetBounds(_x, _y, _width, value, BoundsSpecified.
Height
);
5420
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.
Height
) != 0)
10108
if ((specified & BoundsSpecified.
Height
) == BoundsSpecified.None)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3246
if ((specified & BoundsSpecified.
Height
) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
27458
if ((specified & BoundsSpecified.
Height
) == BoundsSpecified.
Height
&& height > UpperSize)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1379
if ((specified & BoundsSpecified.
Height
) != BoundsSpecified.None)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
1015
if ((specified & BoundsSpecified.
Height
) != BoundsSpecified.None)
System\Windows\Forms\Form.cs (3)
5249
_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.Width | BoundsSpecified.
Height
));
5267
if ((specified & BoundsSpecified.
Height
) != 0)
5290
if ((specified & BoundsSpecified.
Height
) != 0 || _restoreBounds.Height == -1)
System\Windows\Forms\Layout\CommonProperties.cs (1)
293
bool hChangedButNotSpecified = ((specified & BoundsSpecified.
Height
) == BoundsSpecified.None) & height != originalBounds.Height;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2064
if ((specified & BoundsSpecified.
Height
) != BoundsSpecified.None && Orientation == Orientation.Horizontal)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
486
specified &= ~BoundsSpecified.
Height
;
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
680
specified |= BoundsSpecified.
Height
;
696
specified |= BoundsSpecified.
Height
;
770
if (((specified & BoundsSpecified.
Height
) == BoundsSpecified.
Height
) &&
System\Windows\Forms\Design\ComponentTray.cs (2)
2397
(specified & BoundsSpecified.
Height
) == BoundsSpecified.
Height
)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (2)
66
if ((BoundsSpecified.
Height
& specified) == BoundsSpecified.
Height
)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1666
if ((specified & BoundsSpecified.
Height
) == BoundsSpecified.
Height
)
System.Windows.Forms.Tests (53)
System\Windows\Forms\ControlTests.Methods.cs (43)
2421
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 0) };
2427
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2433
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 12) };
2439
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, -12) };
2461
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(0, 0, 0, 4) };
2467
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2473
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2479
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2485
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2594
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 0) };
2600
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2606
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 12) };
2612
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, -12) };
2683
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 0) };
2689
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2695
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 12) };
2701
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, -12) };
2733
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2739
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2745
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2751
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2789
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2795
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
2801
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
8106
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0 };
8107
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Height
, 0, 0, 0, -4, 1 };
8108
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0 };
8109
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0 };
8110
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0 };
8111
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0 };
8112
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Height
, 0, 0, 0, 2, 1 };
8113
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Height
, 0, 0, 0, 2, 1 };
8114
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Height
, 0, 0, 0, 40, 1 };
8483
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0, 0 };
8484
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Height
, 0, 0, 0, -4, 1, 2 };
8485
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0, 0 };
8486
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0, 0 };
8487
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Height
, 0, 0, 0, 0, 0, 0 };
8489
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Height
, 0, 0, 0, 2, 1, 2 };
8490
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Height
, 0, 0, 0, 2, 1, 2 };
8491
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Height
, 0, 0, 0, 40, 1, 2 };
System\Windows\Forms\ScrollBarTests.cs (8)
1780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
1786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
1792
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
1798
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
1828
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 0) };
1834
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 4) };
1840
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, 12) };
1846
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Height
, new Rectangle(1, 2, 3, -12) };
TrackBarTests.cs (2)
2857
if ((specified & BoundsSpecified.
Height
) != 0)
2874
foreach (BoundsSpecified specified in new BoundsSpecified[] { BoundsSpecified.
Height
, BoundsSpecified.Size, BoundsSpecified.All })