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);
1293
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2433
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2685
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2697
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
3068
internal
BoundsSpecified
RequiredScaling
3071
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
3072
:
BoundsSpecified
.None;
3289
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3451
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3808
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4540
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5596
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5613
if ((specified &
BoundsSpecified
.X) != 0)
5618
if ((specified &
BoundsSpecified
.Y) != 0)
5647
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5653
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
6085
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
6091
private void InitScaling(
BoundsSpecified
specified)
10333
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
10540
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
10541
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
10550
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
10553
if (includedSpecified !=
BoundsSpecified
.None)
10558
if (excludedSpecified !=
BoundsSpecified
.None)
10565
RequiredScaling =
BoundsSpecified
.None;
10584
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
10670
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
10699
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
10857
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
10871
InitScaling(
BoundsSpecified
.All);
10878
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
10880
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10885
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10890
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10895
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10931
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10933
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
13518
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)
2023
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3373
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3377
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27524
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27526
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27531
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height && height > UpperSize)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
103
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
688
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)
2633
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)
2239
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
206
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
2596
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
4703
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);
5144
if ((_restoredWindowBoundsSpecified &
BoundsSpecified
.Size) != 0)
5267
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5283
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
5291
specified &= ~
BoundsSpecified
.Location;
5303
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
5311
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.X |
BoundsSpecified
.Y));
5314
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.Width |
BoundsSpecified
.Height));
5316
if ((specified &
BoundsSpecified
.X) != 0)
5321
if ((specified &
BoundsSpecified
.Y) != 0)
5326
if ((specified &
BoundsSpecified
.Width) != 0)
5332
if ((specified &
BoundsSpecified
.Height) != 0)
5340
if ((specified &
BoundsSpecified
.X) != 0)
5345
if ((specified &
BoundsSpecified
.Y) != 0)
5350
if ((specified &
BoundsSpecified
.Width) != 0 || _restoreBounds.Width == -1)
5355
if ((specified &
BoundsSpecified
.Height) != 0 || _restoreBounds.Height == -1)
5460
SetBounds(x + workingArea.X, y + workingArea.Y, width, height,
BoundsSpecified
.All);
6628
_restoredWindowBoundsSpecified =
BoundsSpecified
.Size;
6630
_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)
1661
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1663
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width)
1668
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)