203 references to BoundsSpecified
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
48BoundsSpecified specified )
System.Windows.Forms (170)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1152protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) => bounds; 1171protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Control.cs (46)
332RequiredScaling = BoundsSpecified.All; 729parent.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 1284set => SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 2424set => SetBounds(_x, _y, _width, value, BoundsSpecified.Height); 2676set => SetBounds(value, _y, _width, _height, BoundsSpecified.X); 2688set => SetBounds(value.X, value.Y, _width, _height, BoundsSpecified.Location); 3059internal BoundsSpecified RequiredScaling 3062? (BoundsSpecified)(_requiredScaling & RequiredScalingMask) 3063: BoundsSpecified.None; 3280set => SetBounds(_x, _y, value.Width, value.Height, BoundsSpecified.Size); 3442set => SetBounds(_x, value, _width, _height, BoundsSpecified.Y); 3799set => SetBounds(_x, _y, value, _height, BoundsSpecified.Width); 4531ParentInternal?.LayoutEngine.InitLayout(this, BoundsSpecified.All); 5587protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 5604if ((specified & BoundsSpecified.X) != 0) 5609if ((specified & BoundsSpecified.Y) != 0) 5638if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5644if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 6076LayoutEngine.InitLayout(this, BoundsSpecified.All); 6082private void InitScaling(BoundsSpecified specified) 10275LayoutEngine.InitLayout(child, BoundsSpecified.All); 10482BoundsSpecified includedSpecified = BoundsSpecified.None; 10483BoundsSpecified excludedSpecified = BoundsSpecified.None; 10492excludedSpecified |= (~RequiredScaling & BoundsSpecified.All); 10495if (includedSpecified != BoundsSpecified.None) 10500if (excludedSpecified != BoundsSpecified.None) 10507RequiredScaling = BoundsSpecified.None; 10526protected virtual void ScaleControl(SizeF factor, BoundsSpecified specified) 10612SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.All); 10641SetBounds(sx, sy, sw, sh, BoundsSpecified.All); 10799SetBoundsCore(x, y, width, height, BoundsSpecified.All); 10813InitScaling(BoundsSpecified.All); 10820public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified) 10822if ((specified & BoundsSpecified.X) == BoundsSpecified.None) 10827if ((specified & BoundsSpecified.Y) == BoundsSpecified.None) 10832if ((specified & BoundsSpecified.Width) == BoundsSpecified.None) 10837if ((specified & BoundsSpecified.Height) == BoundsSpecified.None) 10873/// <param name="specified">A bitwise combination of the <see cref="BoundsSpecified"/> values.</param> 10875protected virtual void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 13460void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
67ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
2006protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 3347protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 3351if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27451protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 27453if ((specified & BoundsSpecified.Width) == BoundsSpecified.Width && width > UpperSize) 27458if ((specified & BoundsSpecified.Height) == BoundsSpecified.Height && height > UpperSize)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
103ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 673protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
System\Windows\Forms\Controls\Labels\Label.cs (5)
1377protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 1379if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1384if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1550protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1459protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 2069protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 2082protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1648protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2626SetBounds(sx, sy, sw, sh, BoundsSpecified.All);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
161BoundsSpecified.Size); 168BoundsSpecified.Size);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
868protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
738protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 748base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2191protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
201CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 2591protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 4698void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
654element.SetBounds(bounds, BoundsSpecified.None); 661element.SetBounds(bounds, BoundsSpecified.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
1199SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1491protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 1520protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
987void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
75void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
294protected override void SetBoundsCore(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
359element.SetBounds(cell.CachedBounds, BoundsSpecified.None); 687void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (2)
28protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 30if (((specified & BoundsSpecified.Location) != 0) && FreezeLocationChange)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (6)
393SetBounds(r.X, r.Y, r.Height, r.Width, BoundsSpecified.All); 1005protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 1015if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1022if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
System\Windows\Forms\Form.cs (24)
155private BoundsSpecified _restoredWindowBoundsSpecified; 554toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 681BoundsSpecified preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified; 4275form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 5095if ((_restoredWindowBoundsSpecified & BoundsSpecified.Size) != 0) 5218protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 5234protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 5242specified &= ~BoundsSpecified.Location; 5254protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 5262_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.X | BoundsSpecified.Y)); 5265_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.Width | BoundsSpecified.Height)); 5267if ((specified & BoundsSpecified.X) != 0) 5272if ((specified & BoundsSpecified.Y) != 0) 5277if ((specified & BoundsSpecified.Width) != 0) 5283if ((specified & BoundsSpecified.Height) != 0) 5291if ((specified & BoundsSpecified.X) != 0) 5296if ((specified & BoundsSpecified.Y) != 0) 5301if ((specified & BoundsSpecified.Width) != 0 || _restoreBounds.Width == -1) 5306if ((specified & BoundsSpecified.Height) != 0 || _restoreBounds.Height == -1) 5411SetBounds(x + workingArea.X, y + workingArea.Y, width, height, BoundsSpecified.All); 6579_restoredWindowBoundsSpecified = BoundsSpecified.Size; 6581_restoredWindowBoundsSpecified |= BoundsSpecified.Location;
System\Windows\Forms\Layout\ArrangedElement.cs (2)
171public void SetBounds(Rectangle bounds, BoundsSpecified specified) 178protected virtual void SetBoundsCore(Rectangle bounds, BoundsSpecified specified)
System\Windows\Forms\Layout\CommonProperties.cs (13)
175element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.None); 209element.SetBounds(bounds, BoundsSpecified.Size); 233element.SetBounds(bounds, BoundsSpecified.Size); 266/// whole reason the <see cref="BoundsSpecified"/> enum exists.) Consider this scenario. You set a <see cref="Button"/> 284internal static void UpdateSpecifiedBounds(IArrangedElement element, int x, int y, int width, int height, BoundsSpecified specified) 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 (6)
1760protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 2070protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 2073if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation == Orientation.Horizontal) 2082if ((specified & BoundsSpecified.Width) != BoundsSpecified.None && Orientation == Orientation.Vertical)
System\Windows\Forms\Layout\DefaultLayout.cs (7)
521element.SetBounds(newElementBounds, BoundsSpecified.None); 960element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.None); 972element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.All); 1067element.SetBounds(bounds, BoundsSpecified.None); 1098private protected override void InitLayoutCore(IArrangedElement element, BoundsSpecified specified) 1100Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds, 1103if (specified != BoundsSpecified.None &&
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
54set => _element!.SetBounds(value, BoundsSpecified.None);
System\Windows\Forms\Layout\IArrangedElement.cs (1)
21void SetBounds(Rectangle bounds, BoundsSpecified specified);
System\Windows\Forms\Layout\LayoutEngine.cs (2)
25public virtual void InitLayout(object child, BoundsSpecified specified) 32private protected virtual void InitLayoutCore(IArrangedElement element, BoundsSpecified bounds)
System\Windows\Forms\Layout\TableLayout.cs (1)
1280element.SetBounds(elementBounds, BoundsSpecified.None);
System\Windows\Forms\MDI\MDIClient.cs (5)
195SetBounds(sx, sy, sw, sh, BoundsSpecified.All); 205/// <see cref="ScaleControl(SizeF,BoundsSpecified)" /> to enforce a minimum and maximum size. 209protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 212specified &= ~BoundsSpecified.Location; 216protected override unsafe void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Panels\Panel.cs (1)
82ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
494protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
716protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
130protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 477protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 482specified &= ~BoundsSpecified.Width; 486specified &= ~BoundsSpecified.Height;
System\Windows\Forms\UserControl.cs (1)
90toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (16)
661BoundsSpecified specified = BoundsSpecified.None; 680specified |= BoundsSpecified.Height; 696specified |= BoundsSpecified.Height; 701specified |= BoundsSpecified.Y; 711specified |= BoundsSpecified.Width; 724specified |= BoundsSpecified.Width; 736specified |= BoundsSpecified.X; 764if (((specified & BoundsSpecified.Width) == BoundsSpecified.Width) && 770if (((specified & BoundsSpecified.Height) == BoundsSpecified.Height) && 776if (((specified & BoundsSpecified.X) == BoundsSpecified.X) && 782if (((specified & BoundsSpecified.Y) == BoundsSpecified.Y) &&
System\Windows\Forms\Design\ComponentTray.cs (5)
2393protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 2396(specified & BoundsSpecified.Width) == BoundsSpecified.Width || 2397(specified & BoundsSpecified.Height) == BoundsSpecified.Height)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (5)
59protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 61if ((BoundsSpecified.Width & specified) == BoundsSpecified.Width) 66if ((BoundsSpecified.Height & specified) == BoundsSpecified.Height)
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
1659protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 1661if ((specified & BoundsSpecified.Width) == BoundsSpecified.Width) 1666if ((specified & BoundsSpecified.Height) == BoundsSpecified.Height)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1688protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)