56 references to None
System.Windows.Forms (35)
System\Windows\Forms\Control.cs (10)
2797: BoundsSpecified.None; 9656BoundsSpecified includedSpecified = BoundsSpecified.None; 9657BoundsSpecified excludedSpecified = BoundsSpecified.None; 9669if (includedSpecified != BoundsSpecified.None) 9674if (excludedSpecified != BoundsSpecified.None) 9681RequiredScaling = BoundsSpecified.None; 9999if ((specified & BoundsSpecified.X) == BoundsSpecified.None) 10004if ((specified & BoundsSpecified.Y) == BoundsSpecified.None) 10009if ((specified & BoundsSpecified.Width) == BoundsSpecified.None) 10014if ((specified & BoundsSpecified.Height) == BoundsSpecified.None)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3262if ((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)
175element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.None); 290bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.None) & x != originalBounds.X; 291bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.None) & y != originalBounds.Y; 292bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.None) & width != originalBounds.Width; 293bool 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)
1280element.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)
8153yield return new object[] { 0, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8154yield return new object[] { -1, -2, -3, -4, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8155yield return new object[] { 1, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8156yield return new object[] { 0, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8157yield return new object[] { 1, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8158yield return new object[] { 0, 0, 1, 0, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8159yield return new object[] { 0, 0, 0, 2, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8160yield return new object[] { 0, 0, 1, 2, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8161yield return new object[] { 1, 2, 30, 40, BoundsSpecified.None, 0, 0, 0, 0, 0 }; 8530yield return new object[] { 0, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8531yield return new object[] { -1, -2, -3, -4, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8532yield return new object[] { 1, 0, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8533yield return new object[] { 0, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8534yield return new object[] { 1, 2, 0, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8535yield return new object[] { 0, 0, 1, 0, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8536yield return new object[] { 0, 0, 0, 2, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8537yield return new object[] { 0, 0, 1, 2, BoundsSpecified.None, 0, 0, 0, 0, 0, 0 }; 8538yield 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);