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