177 references to BoundsSpecified
System.Windows.Forms (177)
winforms\Managed\System\WinForms\ArrangedElement.cs (2)
159public void SetBounds(Rectangle bounds, BoundsSpecified specified) { 166protected virtual void SetBoundsCore(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\AxHost.cs (2)
1542protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 1556protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\Button.cs (1)
96ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
winforms\Managed\System\WinForms\ComboBox.cs (4)
2147protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 3272protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 3276if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) {
winforms\Managed\System\WinForms\Control.cs (49)
498RequiredScaling = BoundsSpecified.All; 960ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 1376SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 2917SetBounds(x, y, width, value, BoundsSpecified.Height); 3218SetBounds(value, y, width, height, BoundsSpecified.X); 3236SetBounds(value.X, value.Y, width, height, BoundsSpecified.Location); 3669internal BoundsSpecified RequiredScaling { 3672return (BoundsSpecified)(requiredScaling & RequiredScalingMask); 3674return BoundsSpecified.None; 3896SetBounds(x, y, value.Width, value.Height, BoundsSpecified.Size); 4105SetBounds(x, value, width, height, BoundsSpecified.Y); 4462SetBounds(x, y, value, height, BoundsSpecified.Width); 5534if (ParentInternal != null) ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.All); 6583protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 6611if ((specified & BoundsSpecified.X) != 0) { 6615if ((specified & BoundsSpecified.Y) != 0) { 6625if ((controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) { 6630if ((controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) { 7120LayoutEngine.InitLayout(this, BoundsSpecified.All); 7127private void InitScaling(BoundsSpecified specified) { 11223LayoutEngine.InitLayout(controlsCollection[i], BoundsSpecified.All); 11435BoundsSpecified includedSpecified = BoundsSpecified.None; 11436BoundsSpecified excludedSpecified = BoundsSpecified.None; 11443excludedSpecified |= (~RequiredScaling & BoundsSpecified.All); 11452if (includedSpecified != BoundsSpecified.None) { 11456if (excludedSpecified != BoundsSpecified.None) { 11461RequiredScaling = BoundsSpecified.None; 11480protected virtual void ScaleControl(SizeF factor, BoundsSpecified specified) { 11506if (dx == 1.0F) specified &= ~(BoundsSpecified.X | BoundsSpecified.Width); 11507if (dy == 1.0F) specified &= ~(BoundsSpecified.Y | BoundsSpecified.Height); 11562SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.All); 11595SetBounds(sx, sy, sw, sh, BoundsSpecified.All); 11806SetBoundsCore(x, y, width, height, BoundsSpecified.All); 11814InitScaling(BoundsSpecified.All); 11822public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified) { 11823if ((specified & BoundsSpecified.X) == BoundsSpecified.None) x = this.x; 11824if ((specified & BoundsSpecified.Y) == BoundsSpecified.None) y = this.y; 11825if ((specified & BoundsSpecified.Width) == BoundsSpecified.None) width = this.width; 11826if ((specified & BoundsSpecified.Height) == BoundsSpecified.None) height = this.height; 11850protected virtual void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 14497void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
27470protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) 27472if ((specified & BoundsSpecified.Width) == BoundsSpecified.Width && width > upperSize) { 27475if ((specified & BoundsSpecified.Height) == BoundsSpecified.Height && height > upperSize) {
winforms\Managed\System\WinForms\Form.cs (25)
202private BoundsSpecified restoredWindowBoundsSpecified; 720toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 888BoundsSpecified preClientUpdateRestoredWindowBoundsSpecified = restoredWindowBoundsSpecified; 4820form.SetBounds(new Rectangle(this.Left, this.Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 5681if ((restoredWindowBoundsSpecified & BoundsSpecified.Size) != 0) { 5824protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 5838protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 5845specified &= ~BoundsSpecified.Location; 5860protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 5867restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.X | BoundsSpecified.Y)); 5869restoredWindowBoundsSpecified |= (specified & (BoundsSpecified.Width | BoundsSpecified.Height)); 5871if ((specified & BoundsSpecified.X) != 0) 5873if ((specified & BoundsSpecified.Y) != 0) 5875if ((specified & BoundsSpecified.Width) != 0) { 5879if ((specified & BoundsSpecified.Height) != 0) { 5886if ((specified & BoundsSpecified.X) != 0) 5888if ((specified & BoundsSpecified.Y) != 0) 5890if ((specified & BoundsSpecified.Width) != 0 || restoreBounds.Width == -1) 5892if ((specified & BoundsSpecified.Height) != 0 || restoreBounds.Height == -1) 5939base.SetBoundsCore(adjustedBounds.X, adjustedBounds.Y, adjustedBounds.Width, adjustedBounds.Height, BoundsSpecified.All); 6054SetBounds(x + workingArea.X, y + workingArea.Y, width, height, BoundsSpecified.All); 6889restoredWindowBoundsSpecified = BoundsSpecified.Size; 6891restoredWindowBoundsSpecified |= BoundsSpecified.Location;
winforms\Managed\System\WinForms\GroupBox.cs (2)
142ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 735protected override void ScaleControl(SizeF factor, BoundsSpecified specified) {
winforms\Managed\System\WinForms\Label.cs (5)
1670protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 1671if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1673if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (12)
183element.SetBounds(GetSpecifiedBounds(element), BoundsSpecified.None); 216element.SetBounds(bounds, BoundsSpecified.Size); 238element.SetBounds(bounds, BoundsSpecified.Size); 274internal static void UpdateSpecifiedBounds(IArrangedElement element, int x, int y, int width, int height, BoundsSpecified specified) { 279bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.None) & x != originalBounds.X; 280bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.None) & y != originalBounds.Y; 281bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.None) & width != originalBounds.Width; 282bool hChangedButNotSpecified = ((specified & BoundsSpecified.Height) == BoundsSpecified.None) & height != originalBounds.Height;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (7)
370element.SetBounds(newElementBounds, BoundsSpecified.None); 684element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.None); 692element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.All); 762element.SetBounds(bounds, BoundsSpecified.None); 795internal override void InitLayoutCore(IArrangedElement element, BoundsSpecified specified) { 796Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds, 799if(specified != BoundsSpecified.None && CommonProperties.GetNeedsAnchorLayout(element)) {
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
553set { _element.SetBounds(value, BoundsSpecified.None); }
winforms\Managed\System\WinForms\Layout\IArrangedElement.cs (1)
22void SetBounds(Rectangle bounds, BoundsSpecified specified);
winforms\Managed\System\WinForms\Layout\LayoutEngine.cs (2)
31public virtual void InitLayout(object child, BoundsSpecified specified) { 35internal virtual void InitLayoutCore(IArrangedElement element, BoundsSpecified bounds) {}
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1245element.SetBounds(elementBounds, BoundsSpecified.None);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1679protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ListBox.cs (3)
1515protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 2054protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 2068protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\MDIClient.cs (4)
216SetBounds(sx, sy, sw, sh, BoundsSpecified.All); 227protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 229specified &= ~BoundsSpecified.Location; 237protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1951protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\Panel.cs (1)
113ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2969SetBounds(sx, sy, sw, sh, BoundsSpecified.All);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (2)
151BoundsSpecified.Size); 157BoundsSpecified.Size);
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
813protected override void ScaleControl(SizeF factor, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ScrollBar.cs (3)
667protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 671specified &= ~BoundsSpecified.Width; 674specified &= ~BoundsSpecified.Height;
winforms\Managed\System\WinForms\SplitContainer.cs (6)
1883protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 2137protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 2140if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation == Orientation.Horizontal) { 2148if ((specified & BoundsSpecified.Width) != BoundsSpecified.None && Orientation == Orientation.Vertical) {
winforms\Managed\System\WinForms\Splitter.cs (1)
950protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
500protected override void ScaleControl(SizeF factor, BoundsSpecified specified) {
winforms\Managed\System\WinForms\TabPage.cs (4)
739protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified) { 747base.SetBoundsCore (r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1985protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolBar.cs (6)
840protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 1449protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 1457if ((specified & BoundsSpecified.Width) != BoundsSpecified.None) requestedSize = width; 1467if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) requestedSize = height;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
269CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 2787protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 4782void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
816element.SetBounds(bounds, BoundsSpecified.None); 822element.SetBounds(bounds, BoundsSpecified.None);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
1444SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1728protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { 1756protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
1185void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
100void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
260protected override void SetBoundsCore(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
356element.SetBounds(cell.CachedBounds, BoundsSpecified.None); 684void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (2)
175protected override void SetBoundsCore(int x,int y,int width, int height, BoundsSpecified specified) 177if (((specified & BoundsSpecified.Location) != 0) && FreezeLocationChange) {
winforms\Managed\System\WinForms\TrackBar.cs (6)
462SetBounds(r.X, r.Y, r.Height, r.Width, BoundsSpecified.All); 1054protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) { 1064if ((specified & BoundsSpecified.Height) != BoundsSpecified.None) 1068if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
winforms\Managed\System\WinForms\UserControl.cs (1)
114toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size);