56 references to None
System.Windows.Forms (35)
System\Windows\Forms\Control.cs (10)
2797
: BoundsSpecified.
None
;
9656
BoundsSpecified includedSpecified = BoundsSpecified.
None
;
9657
BoundsSpecified excludedSpecified = BoundsSpecified.
None
;
9669
if (includedSpecified != BoundsSpecified.
None
)
9674
if (excludedSpecified != BoundsSpecified.
None
)
9681
RequiredScaling = BoundsSpecified.
None
;
9999
if ((specified & BoundsSpecified.X) == BoundsSpecified.
None
)
10004
if ((specified & BoundsSpecified.Y) == BoundsSpecified.
None
)
10009
if ((specified & BoundsSpecified.Width) == BoundsSpecified.
None
)
10014
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)
1017
if ((specified & BoundsSpecified.Height) != BoundsSpecified.
None
)
1024
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)
517
element.SetBounds(newElementBounds, BoundsSpecified.
None
);
953
element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.
None
);
1060
element.SetBounds(bounds, BoundsSpecified.
None
);
1093
Debug.Assert(specified == BoundsSpecified.
None
|| GetCachedBounds(element) == element.Bounds,
1096
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)
8153
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8154
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8155
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8156
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8157
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8158
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8159
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8160
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8161
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8530
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8531
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8532
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8533
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8534
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8535
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8536
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8537
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8538
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
);