78 references to Width
System.Windows.Forms (15)
System\Windows\Forms\BoundsSpecified.cs (1)
43
Size =
Width
| Height,
System\Windows\Forms\Control.cs (4)
3532
set => SetBounds(_x, _y, value, _height, BoundsSpecified.
Width
);
5286
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.
Width
) != 0)
9686
specified &= ~(BoundsSpecified.X | BoundsSpecified.
Width
);
9976
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.None)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
27445
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
&& width > UpperSize)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1386
if ((specified & BoundsSpecified.
Width
) != BoundsSpecified.None)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
1024
if ((specified & BoundsSpecified.
Width
) != BoundsSpecified.None)
System\Windows\Forms\Form.cs (3)
5178
_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.
Width
| BoundsSpecified.Height));
5190
if ((specified & BoundsSpecified.
Width
) != 0)
5214
if ((specified & BoundsSpecified.
Width
) != 0 || _restoreBounds.Width == -1)
System\Windows\Forms\Layout\CommonProperties.cs (1)
297
bool wChangedButNotSpecified = ((specified & BoundsSpecified.
Width
) == BoundsSpecified.None) & width != originalBounds.Width;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2073
if ((specified & BoundsSpecified.
Width
) != BoundsSpecified.None && Orientation == Orientation.Vertical)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
489
specified &= ~BoundsSpecified.
Width
;
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
711
specified |= BoundsSpecified.
Width
;
724
specified |= BoundsSpecified.
Width
;
764
if (((specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
) &&
System\Windows\Forms\Design\ComponentTray.cs (2)
2414
(specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
||
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (2)
61
if ((BoundsSpecified.
Width
& specified) == BoundsSpecified.
Width
)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1665
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
)
System.Windows.Forms.Tests (53)
System\Windows\Forms\ControlTests.Methods.cs (43)
2438
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2444
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2478
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(0, 0, 4, 0) };
2484
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 4, 4) };
2490
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2496
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 2, 4) };
2502
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2611
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2617
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2623
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2629
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2700
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2706
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2712
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2750
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2756
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2762
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2800
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2806
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2812
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2818
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
8114
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8115
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Width
, 0, 0, -3, 0, 1 };
8116
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8117
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8118
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Width
, 0, 0, 1, 0, 1 };
8120
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8121
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Width
, 0, 0, 1, 0, 1 };
8122
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Width
, 0, 0, 30, 0, 1 };
8491
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8492
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Width
, 0, 0, -3, 0, 1, 2 };
8493
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8495
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Width
, 0, 0, 1, 0, 1, 2 };
8497
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8498
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Width
, 0, 0, 1, 0, 1, 2 };
8499
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Width
, 0, 0, 30, 0, 1, 2 };
System\Windows\Forms\ScrollBarTests.cs (8)
1777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
1783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1789
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
1795
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
1825
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1831
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1837
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1843
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
TrackBarTests.cs (2)
2888
if ((specified & BoundsSpecified.
Width
) != 0)
2905
foreach (BoundsSpecified specified in new BoundsSpecified[] { BoundsSpecified.
Width
, BoundsSpecified.Size, BoundsSpecified.All })