56 references to None
System.Windows.Forms (35)
System\Windows\Forms\Control.cs (10)
2796: BoundsSpecified.None; 9615BoundsSpecified includedSpecified = BoundsSpecified.None; 9616BoundsSpecified excludedSpecified = BoundsSpecified.None; 9628if (includedSpecified != BoundsSpecified.None) 9633if (excludedSpecified != BoundsSpecified.None) 9640RequiredScaling = BoundsSpecified.None; 9966if ((specified & BoundsSpecified.X) == BoundsSpecified.None) 9971if ((specified & BoundsSpecified.Y) == BoundsSpecified.None) 9976if ((specified & BoundsSpecified.Width) == BoundsSpecified.None) 9981if ((specified & BoundsSpecified.Height) == BoundsSpecified.None)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3261if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\Labels\Label.cs (2)
1381if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1386if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
736base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
654element.SetBounds(bounds, BoundsSpecified.None); 661element.SetBounds(bounds, BoundsSpecified.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
359element.SetBounds(cell.CachedBounds, BoundsSpecified.None);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
1017if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1024if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
System\Windows\Forms\Form.cs (1)
4212form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None);
System\Windows\Forms\Layout\CommonProperties.cs (5)
180element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.None); 295bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.None) & x != originalBounds.X; 296bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.None) & y != originalBounds.Y; 297bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.None) & width != originalBounds.Width; 298bool hChangedButNotSpecified = ((specified & BoundsSpecified.Height) == BoundsSpecified.None) & height != originalBounds.Height;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
2064if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation == Orientation.Horizontal) 2073if ((specified & BoundsSpecified.Width) != BoundsSpecified.None && Orientation == Orientation.Vertical)
System\Windows\Forms\Layout\DefaultLayout.cs (5)
517element.SetBounds(newElementBounds, BoundsSpecified.None); 953element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.None); 1060element.SetBounds(bounds, BoundsSpecified.None); 1093Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds, 1096if (specified != BoundsSpecified.None &&
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
54set => _element!.SetBounds(value, BoundsSpecified.None);
System\Windows\Forms\Layout\TableLayout.cs (1)
1281element.SetBounds(elementBounds, BoundsSpecified.None);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
661BoundsSpecified specified = BoundsSpecified.None;
System.Windows.Forms.Tests (19)
System\Windows\Forms\ControlTests.Methods.cs (18)
8144yield return new object[] { 0, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8145yield return new object[] { -1, -2, -3, -4, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8146yield return new object[] { 1, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8147yield return new object[] { 0, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8148yield return new object[] { 1, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8149yield return new object[] { 0, 0, 1, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8150yield return new object[] { 0, 0, 0, 2, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8151yield return new object[] { 0, 0, 1, 2, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8152yield return new object[] { 1, 2, 30, 40, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8521yield return new object[] { 0, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8522yield return new object[] { -1, -2, -3, -4, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8523yield return new object[] { 1, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8524yield return new object[] { 0, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8525yield return new object[] { 1, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8526yield return new object[] { 0, 0, 1, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8527yield return new object[] { 0, 0, 0, 2, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8528yield return new object[] { 0, 0, 1, 2, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8529yield 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)
223button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10, BoundsSpecified.None);