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)
322RequiredScaling = BoundsSpecified.All; 719parent.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 1105set => SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 2245set => SetBounds(_x, _y, _width, value, BoundsSpecified.Height); 2497set => SetBounds(value, _y, _width, _height, BoundsSpecified.X); 2509set => SetBounds(value.X, value.Y, _width, _height, BoundsSpecified.Location); 2880internal BoundsSpecified RequiredScaling 2883? (BoundsSpecified)(_requiredScaling & RequiredScalingMask) 2884: BoundsSpecified.None; 3101set => SetBounds(_x, _y, value.Width, value.Height, BoundsSpecified.Size); 3263set => SetBounds(_x, value, _width, _height, BoundsSpecified.Y); 3620set => SetBounds(_x, _y, value, _height, BoundsSpecified.Width); 4315ParentInternal?.LayoutEngine.InitLayout(this, BoundsSpecified.All); 5363protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 5380if ((specified & BoundsSpecified.X) != 0) 5385if ((specified & BoundsSpecified.Y) != 0) 5414if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5420if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 5852LayoutEngine.InitLayout(this, BoundsSpecified.All); 5858private void InitScaling(BoundsSpecified specified) 9546LayoutEngine.InitLayout(child, BoundsSpecified.All); 9753BoundsSpecified includedSpecified = BoundsSpecified.None; 9754BoundsSpecified excludedSpecified = BoundsSpecified.None; 9763excludedSpecified |= (~RequiredScaling & BoundsSpecified.All); 9766if (includedSpecified != BoundsSpecified.None) 9771if (excludedSpecified != BoundsSpecified.None) 9778RequiredScaling = BoundsSpecified.None; 9797protected virtual void ScaleControl(SizeF factor, BoundsSpecified specified) 9883SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.All); 9912SetBounds(sx, sy, sw, sh, BoundsSpecified.All); 10070SetBoundsCore(x, y, width, height, BoundsSpecified.All); 10084InitScaling(BoundsSpecified.All); 10091public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified) 10093if ((specified & BoundsSpecified.X) == BoundsSpecified.None) 10098if ((specified & BoundsSpecified.Y) == BoundsSpecified.None) 10103if ((specified & BoundsSpecified.Width) == BoundsSpecified.None) 10108if ((specified & BoundsSpecified.Height) == BoundsSpecified.None) 10144/// <param name="specified">A bitwise combination of the <see cref="BoundsSpecified"/> values.</param> 10146protected virtual void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 12723void 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)
1935protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 3242protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 3246if ((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); 631protected 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)
1538protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1457protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 2067protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 2080protected 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)
2578SetBounds(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)
730protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 740base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1780protected 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) 4683void 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)
152private BoundsSpecified _restoredWindowBoundsSpecified; 551toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 678BoundsSpecified preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified; 4259form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 5079if ((_restoredWindowBoundsSpecified & BoundsSpecified.Size) != 0) 5202protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) 5218protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 5226specified &= ~BoundsSpecified.Location; 5238protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 5246_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.X | BoundsSpecified.Y)); 5249_restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.Width | BoundsSpecified.Height)); 5251if ((specified & BoundsSpecified.X) != 0) 5256if ((specified & BoundsSpecified.Y) != 0) 5261if ((specified & BoundsSpecified.Width) != 0) 5267if ((specified & BoundsSpecified.Height) != 0) 5275if ((specified & BoundsSpecified.X) != 0) 5280if ((specified & BoundsSpecified.Y) != 0) 5285if ((specified & BoundsSpecified.Width) != 0 || _restoreBounds.Width == -1) 5290if ((specified & BoundsSpecified.Height) != 0 || _restoreBounds.Height == -1) 5395SetBounds(x + workingArea.X, y + workingArea.Y, width, height, BoundsSpecified.All); 6563_restoredWindowBoundsSpecified = BoundsSpecified.Size; 6565_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)
1751protected override void ScaleControl(SizeF factor, BoundsSpecified specified) 2061protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 2064if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation == Orientation.Horizontal) 2073if ((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)