77 references to Width
System.Windows.Forms (14)
System\Windows\Forms\BoundsSpecified.cs (1)
43
Size =
Width
| Height,
System\Windows\Forms\Control.cs (3)
3620
set => SetBounds(_x, _y, value, _height, BoundsSpecified.
Width
);
5414
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.
Width
) != 0)
10103
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.None)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
27453
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
&& width > UpperSize)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1384
if ((specified & BoundsSpecified.
Width
) != BoundsSpecified.None)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
1022
if ((specified & BoundsSpecified.
Width
) != BoundsSpecified.None)
System\Windows\Forms\Form.cs (3)
5249
_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.
Width
| BoundsSpecified.Height));
5261
if ((specified & BoundsSpecified.
Width
) != 0)
5285
if ((specified & BoundsSpecified.
Width
) != 0 || _restoreBounds.Width == -1)
System\Windows\Forms\Layout\CommonProperties.cs (1)
292
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)
482
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)
2396
(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)
1661
if ((specified & BoundsSpecified.
Width
) == BoundsSpecified.
Width
)
System.Windows.Forms.Tests (53)
System\Windows\Forms\ControlTests.Methods.cs (43)
2420
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2426
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2432
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2438
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2460
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(0, 0, 4, 0) };
2466
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 4, 4) };
2472
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2478
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 2, 4) };
2484
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2593
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2599
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2605
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(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2682
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2688
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2694
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2700
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2732
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
2738
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2744
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
2750
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
2782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2794
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
2800
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
8096
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8097
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Width
, 0, 0, -3, 0, 1 };
8098
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8099
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Width
, 0, 0, 1, 0, 1 };
8102
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Width
, 0, 0, 0, 0, 0 };
8103
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Width
, 0, 0, 1, 0, 1 };
8104
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Width
, 0, 0, 30, 0, 1 };
8473
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
Width
, 0, 0, -3, 0, 1, 2 };
8475
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8476
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8478
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
Width
, 0, 0, 1, 0, 1, 2 };
8479
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
Width
, 0, 0, 0, 0, 0, 0 };
8480
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
Width
, 0, 0, 1, 0, 1, 2 };
8481
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
Width
, 0, 0, 30, 0, 1, 2 };
System\Windows\Forms\ScrollBarTests.cs (8)
1779
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 0, 4) };
1785
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1791
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 6, 4) };
1797
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
Width
, new Rectangle(1, 2, -6, 4) };
1827
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1833
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1839
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
Width
, new Rectangle(1, 2, 3, 4) };
1845
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)
2890
if ((specified & BoundsSpecified.
Width
) != 0)
2907
foreach (BoundsSpecified specified in new BoundsSpecified[] { BoundsSpecified.
Width
, BoundsSpecified.Size, BoundsSpecified.All })