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)
332
RequiredScaling =
BoundsSpecified
.All;
729
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1284
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2424
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2676
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2688
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
3059
internal
BoundsSpecified
RequiredScaling
3062
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
3063
:
BoundsSpecified
.None;
3280
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3442
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3799
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4531
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5587
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5604
if ((specified &
BoundsSpecified
.X) != 0)
5609
if ((specified &
BoundsSpecified
.Y) != 0)
5638
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5644
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
6076
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
6082
private void InitScaling(
BoundsSpecified
specified)
10275
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
10482
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
10483
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
10492
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
10495
if (includedSpecified !=
BoundsSpecified
.None)
10500
if (excludedSpecified !=
BoundsSpecified
.None)
10507
RequiredScaling =
BoundsSpecified
.None;
10526
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
10612
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
10641
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
10799
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
10813
InitScaling(
BoundsSpecified
.All);
10820
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
10822
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10827
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10832
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10837
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10873
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10875
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
13460
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)
2006
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3347
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3351
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);
673
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)
1550
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1459
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
2069
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2082
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)
2626
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)
738
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
748
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)
2191
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)
4698
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)
155
private
BoundsSpecified
_restoredWindowBoundsSpecified;
554
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
681
BoundsSpecified
preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified;
4275
form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height),
BoundsSpecified
.None);
5095
if ((_restoredWindowBoundsSpecified &
BoundsSpecified
.Size) != 0)
5218
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5234
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
5242
specified &= ~
BoundsSpecified
.Location;
5254
protected 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));
5267
if ((specified &
BoundsSpecified
.X) != 0)
5272
if ((specified &
BoundsSpecified
.Y) != 0)
5277
if ((specified &
BoundsSpecified
.Width) != 0)
5283
if ((specified &
BoundsSpecified
.Height) != 0)
5291
if ((specified &
BoundsSpecified
.X) != 0)
5296
if ((specified &
BoundsSpecified
.Y) != 0)
5301
if ((specified &
BoundsSpecified
.Width) != 0 || _restoreBounds.Width == -1)
5306
if ((specified &
BoundsSpecified
.Height) != 0 || _restoreBounds.Height == -1)
5411
SetBounds(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)
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)
1760
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2070
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
2073
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && Orientation == Orientation.Horizontal)
2082
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)