203 references to BoundsSpecified
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
48
BoundsSpecified
specified )
System.Windows.Forms (170)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1152
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => bounds;
1171
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Control.cs (46)
322
RequiredScaling =
BoundsSpecified
.All;
719
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1105
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2245
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2497
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2509
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
2880
internal
BoundsSpecified
RequiredScaling
2883
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
2884
:
BoundsSpecified
.None;
3101
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3263
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3620
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4315
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5363
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5380
if ((specified &
BoundsSpecified
.X) != 0)
5385
if ((specified &
BoundsSpecified
.Y) != 0)
5414
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5420
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
5852
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5858
private void InitScaling(
BoundsSpecified
specified)
9546
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
9753
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
9754
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
9763
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
9766
if (includedSpecified !=
BoundsSpecified
.None)
9771
if (excludedSpecified !=
BoundsSpecified
.None)
9778
RequiredScaling =
BoundsSpecified
.None;
9797
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
9883
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
9912
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
10070
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
10084
InitScaling(
BoundsSpecified
.All);
10091
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
10093
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10098
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10103
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10108
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10144
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10146
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
12723
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
67
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1935
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3242
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3246
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27451
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27453
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27458
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height && height > UpperSize)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
103
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
631
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Controls\Labels\Label.cs (5)
1377
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1379
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1384
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1538
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1457
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
2067
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2080
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1648
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2578
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
161
BoundsSpecified
.Size);
168
BoundsSpecified
.Size);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
868
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
730
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
740
base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified ==
BoundsSpecified
.None ?
BoundsSpecified
.None :
BoundsSpecified
.All);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1780
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
201
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
2591
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
4683
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
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\ToolStripDropDown.cs (3)
1199
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
1491
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
1520
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
987
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
75
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
294
protected override void SetBoundsCore(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
359
element.SetBounds(cell.CachedBounds,
BoundsSpecified
.None);
687
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (2)
28
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
30
if (((specified &
BoundsSpecified
.Location) != 0) && FreezeLocationChange)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (6)
393
SetBounds(r.X, r.Y, r.Height, r.Width,
BoundsSpecified
.All);
1005
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1015
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1022
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Form.cs (24)
152
private
BoundsSpecified
_restoredWindowBoundsSpecified;
551
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
678
BoundsSpecified
preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified;
4259
form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height),
BoundsSpecified
.None);
5079
if ((_restoredWindowBoundsSpecified &
BoundsSpecified
.Size) != 0)
5202
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5218
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
5226
specified &= ~
BoundsSpecified
.Location;
5238
protected 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));
5251
if ((specified &
BoundsSpecified
.X) != 0)
5256
if ((specified &
BoundsSpecified
.Y) != 0)
5261
if ((specified &
BoundsSpecified
.Width) != 0)
5267
if ((specified &
BoundsSpecified
.Height) != 0)
5275
if ((specified &
BoundsSpecified
.X) != 0)
5280
if ((specified &
BoundsSpecified
.Y) != 0)
5285
if ((specified &
BoundsSpecified
.Width) != 0 || _restoreBounds.Width == -1)
5290
if ((specified &
BoundsSpecified
.Height) != 0 || _restoreBounds.Height == -1)
5395
SetBounds(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)
171
public void SetBounds(Rectangle bounds,
BoundsSpecified
specified)
178
protected virtual void SetBoundsCore(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Layout\CommonProperties.cs (13)
175
element.SetBounds(GetSpecifiedBounds(element),
BoundsSpecified
.None);
209
element.SetBounds(bounds,
BoundsSpecified
.Size);
233
element.SetBounds(bounds,
BoundsSpecified
.Size);
266
/// whole reason the <see cref="
BoundsSpecified
"/> enum exists.) Consider this scenario. You set a <see cref="Button"/>
284
internal static void UpdateSpecifiedBounds(IArrangedElement element, int x, int y, int width, int height,
BoundsSpecified
specified)
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 (6)
1751
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2061
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
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 (7)
521
element.SetBounds(newElementBounds,
BoundsSpecified
.None);
960
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.None);
972
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.All);
1067
element.SetBounds(bounds,
BoundsSpecified
.None);
1098
private protected override void InitLayoutCore(IArrangedElement element,
BoundsSpecified
specified)
1100
Debug.Assert(specified ==
BoundsSpecified
.None || GetCachedBounds(element) == element.Bounds,
1103
if (specified !=
BoundsSpecified
.None &&
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
54
set => _element!.SetBounds(value,
BoundsSpecified
.None);
System\Windows\Forms\Layout\IArrangedElement.cs (1)
21
void SetBounds(Rectangle bounds,
BoundsSpecified
specified);
System\Windows\Forms\Layout\LayoutEngine.cs (2)
25
public virtual void InitLayout(object child,
BoundsSpecified
specified)
32
private protected virtual void InitLayoutCore(IArrangedElement element,
BoundsSpecified
bounds)
System\Windows\Forms\Layout\TableLayout.cs (1)
1280
element.SetBounds(elementBounds,
BoundsSpecified
.None);
System\Windows\Forms\MDI\MDIClient.cs (5)
195
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
205
/// <see cref="ScaleControl(SizeF,
BoundsSpecified
)" /> to enforce a minimum and maximum size.
209
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
212
specified &= ~
BoundsSpecified
.Location;
216
protected override unsafe void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Panels\Panel.cs (1)
82
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
494
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
716
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
130
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
477
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
482
specified &= ~
BoundsSpecified
.Width;
486
specified &= ~
BoundsSpecified
.Height;
System\Windows\Forms\UserControl.cs (1)
90
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (16)
661
BoundsSpecified
specified =
BoundsSpecified
.None;
680
specified |=
BoundsSpecified
.Height;
696
specified |=
BoundsSpecified
.Height;
701
specified |=
BoundsSpecified
.Y;
711
specified |=
BoundsSpecified
.Width;
724
specified |=
BoundsSpecified
.Width;
736
specified |=
BoundsSpecified
.X;
764
if (((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width) &&
770
if (((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height) &&
776
if (((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.X) &&
782
if (((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.Y) &&
System\Windows\Forms\Design\ComponentTray.cs (5)
2393
protected 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)
59
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
61
if ((
BoundsSpecified
.Width & specified) ==
BoundsSpecified
.Width)
66
if ((
BoundsSpecified
.Height & specified) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
1659
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1661
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width)
1666
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1688
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)