56 references to None
System.Windows.Forms (35)
System\Windows\Forms\Control.cs (10)
2796
: BoundsSpecified.
None
;
9615
BoundsSpecified includedSpecified = BoundsSpecified.
None
;
9616
BoundsSpecified excludedSpecified = BoundsSpecified.
None
;
9628
if (includedSpecified != BoundsSpecified.
None
)
9633
if (excludedSpecified != BoundsSpecified.
None
)
9640
RequiredScaling = BoundsSpecified.
None
;
9966
if ((specified & BoundsSpecified.X) == BoundsSpecified.
None
)
9971
if ((specified & BoundsSpecified.Y) == BoundsSpecified.
None
)
9976
if ((specified & BoundsSpecified.Width) == BoundsSpecified.
None
)
9981
if ((specified & BoundsSpecified.Height) == BoundsSpecified.
None
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3261
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)
180
element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.
None
);
295
bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.
None
) & x != originalBounds.X;
296
bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.
None
) & y != originalBounds.Y;
297
bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.
None
) & width != originalBounds.Width;
298
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)
1281
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)
8144
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8145
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8146
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8147
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8148
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8149
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8150
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8151
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8152
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
None
, 0, 0, 0, 0, 0 };
8521
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8522
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8523
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8524
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8525
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8526
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8527
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8528
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
None
, 0, 0, 0, 0, 0, 0 };
8529
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
);