56 references to None
System.Windows.Forms (35)
System\Windows\Forms\Control.cs (10)
2796
: BoundsSpecified.
None
;
9655
BoundsSpecified includedSpecified = BoundsSpecified.
None
;
9656
BoundsSpecified excludedSpecified = BoundsSpecified.
None
;
9668
if (includedSpecified != BoundsSpecified.
None
)
9673
if (excludedSpecified != BoundsSpecified.
None
)
9680
RequiredScaling = BoundsSpecified.
None
;
9998
if ((specified & BoundsSpecified.X) == BoundsSpecified.
None
)
10003
if ((specified & BoundsSpecified.Y) == BoundsSpecified.
None
)
10008
if ((specified & BoundsSpecified.Width) == BoundsSpecified.
None
)
10013
if ((specified & BoundsSpecified.Height) == BoundsSpecified.
None
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3262
if ((specified & BoundsSpecified.Height) != BoundsSpecified.
None
&& DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\Labels\Label.cs (2)
1381
if ((specified & BoundsSpecified.Height) != BoundsSpecified.
None
)
1386
if ((specified & BoundsSpecified.Width) != BoundsSpecified.
None
)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
736
base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.
None
? BoundsSpecified.
None
: BoundsSpecified.All);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
654
element.SetBounds(bounds, BoundsSpecified.
None
);
661
element.SetBounds(bounds, BoundsSpecified.
None
);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
359
element.SetBounds(cell.CachedBounds, BoundsSpecified.
None
);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
1016
if ((specified & BoundsSpecified.Height) != BoundsSpecified.
None
)
1023
if ((specified & BoundsSpecified.Width) != BoundsSpecified.
None
)
System\Windows\Forms\Form.cs (1)
4212
form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.
None
);
System\Windows\Forms\Layout\CommonProperties.cs (5)
175
element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.
None
);
290
bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.
None
) & x != originalBounds.X;
291
bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.
None
) & y != originalBounds.Y;
292
bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.
None
) & width != originalBounds.Width;
293
bool hChangedButNotSpecified = ((specified & BoundsSpecified.Height) == BoundsSpecified.
None
) & height != originalBounds.Height;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
2064
if ((specified & BoundsSpecified.Height) != BoundsSpecified.
None
&& Orientation == Orientation.Horizontal)
2073
if ((specified & BoundsSpecified.Width) != BoundsSpecified.
None
&& Orientation == Orientation.Vertical)
System\Windows\Forms\Layout\DefaultLayout.cs (5)
516
element.SetBounds(newElementBounds, BoundsSpecified.
None
);
952
element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.
None
);
1059
element.SetBounds(bounds, BoundsSpecified.
None
);
1092
Debug.Assert(specified == BoundsSpecified.
None
|| GetCachedBounds(element) == element.Bounds,
1095
if (specified != BoundsSpecified.
None
&&
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
54
set => _element!.SetBounds(value, BoundsSpecified.
None
);
System\Windows\Forms\Layout\TableLayout.cs (1)
1280
element.SetBounds(elementBounds, BoundsSpecified.
None
);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
661
BoundsSpecified specified = BoundsSpecified.
None
;
System.Windows.Forms.Tests (19)
System\Windows\Forms\ControlTests.Methods.cs (18)
8111
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8112
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8113
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8114
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8115
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8116
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8117
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8118
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8489
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8490
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8491
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8492
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8493
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8495
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
System\Windows\Forms\ControlTests.Properties.cs (1)
1011
.Setup(e => e.InitLayout(control, BoundsSpecified.
None
));
System.Windows.Forms.UI.IntegrationTests (1)
AnchorLayoutTests.cs (1)
223
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10, BoundsSpecified.
None
);