409 references to Top
Accessibility_Core_App (3)
CommonControl1.Designer.cs (3)
206this.button2.Anchor = System.Windows.Forms.AnchorStyles.Top; 429this.linkLabel6.Anchor = System.Windows.Forms.AnchorStyles.Top; 510this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top;
PresentationUI (6)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (2)
74this._buttonFlowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 113this._listButtonFlowLayoutPanel.Anchor = System.Windows.Forms.AnchorStyles.Top;
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (1)
110this.progressBar1.Anchor = System.Windows.Forms.AnchorStyles.Top;
MS\Internal\Documents\SigningDialog.Designer.cs (3)
194_cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 209_signButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 223_signSaveAsButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
System.Windows.Forms (41)
System\Windows\Forms\Controls\Labels\Label.cs (2)
828(Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
184Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1173if (returnIfAnchored && (Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom))
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
14private const AnchorStyles AllAnchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top; 16private const AnchorStyles VerticalAnchor = AnchorStyles.Top | AnchorStyles.Bottom;
System\Windows\Forms\Layout\CommonProperties.cs (1)
27internal const AnchorStyles DefaultAnchor = AnchorStyles.Top | AnchorStyles.Left;
System\Windows\Forms\Layout\DefaultLayout.cs (9)
42if ((anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom)) 127&& (anchor & AnchorStyles.Top) == AnchorStyles.None) 207if (IsAnchored(anchors, AnchorStyles.Top)) 268if (!IsAnchored(anchor, AnchorStyles.Top)) 273else if (!IsAnchored(anchor, AnchorStyles.Top)) 796if (!IsAnchored(anchor, AnchorStyles.Top)) 806if (!IsAnchored(anchor, AnchorStyles.Top)) 812else if (!IsAnchored(anchor, AnchorStyles.Top))
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (2)
25bool isTop = (anchorStyles & AnchorStyles.Top) != 0; // whether the control anchors to top and does not stretch; 37return AnchorStyles.Top;
System\Windows\Forms\Layout\FlowLayout.VerticalElementProxy.cs (1)
32return AnchorStyles.Top;
System\Windows\Forms\Layout\LayoutUtils.cs (13)
26public const AnchorStyles VerticalAnchorStyles = AnchorStyles.Top | AnchorStyles.Bottom; 30/* None */ AnchorStyles.Top | AnchorStyles.Left, 31/* Top */ AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, 33/* Left */ AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom, 34/* Right */ AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom, 35/* Fill */ AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left 183case AnchorStyles.Top: 190result |= AnchorStyles.Top; 518case AnchorStyles.Top: 552case AnchorStyles.Top: 555region2 = SubstituteSpecifiedBounds(bounds, region2, AnchorStyles.Top); 559region1 = SubstituteSpecifiedBounds(bounds, region1, AnchorStyles.Top); 592int top = (specified & AnchorStyles.Top) != 0 ? substitutionBounds.Top : originalBounds.Top;
System\Windows\Forms\Layout\TableLayout.cs (2)
830if ((tlp.Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom))
System\Windows\Forms\Layout\TextImageRelation.cs (1)
16ImageAboveText = AnchorStyles.Top,
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
82Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom, 823_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; 828_vScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
449if ((anchor & AnchorStyles.Top) != AnchorStyles.Top)
System.Windows.Forms.Design (10)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
180const AnchorStyles DefaultCenterAnchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; 181const AnchorStyles DefaultRightAnchor = AnchorStyles.Top | AnchorStyles.Right;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (7)
54baseVar |= AnchorStyles.Top; 81_container.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right; 85_control.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right; 105_top.Anchor = AnchorStyles.Top; 152_top.IsSolid = (anchorStyles & AnchorStyles.Top) == AnchorStyles.Top; 159_oldAnchor = AnchorStyles.Top | AnchorStyles.Left;
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
38Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right,
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\ByteViewerTests.cs (1)
22Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\Design\AnchorEditorTests.cs (1)
26yield return new object[] { AnchorStyles.Top };
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (4)
32anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left); 34control.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; 36anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom); 40anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left);
System.Windows.Forms.Tests (311)
System\Windows\Forms\AxHostTests.cs (2)
35Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 129Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ButtonBaseTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ButtonTests.cs (1)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\CheckBoxTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ComboBoxTests.cs (1)
28Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ContainerControlTests.cs (1)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ControlTests.cs (5)
22Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 111Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 207Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 303Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 399Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ControlTests.Properties.cs (180)
309yield return new object[] { AnchorStyles.Top, AnchorStyles.Top }; 310yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom }; 311yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left }; 312yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right }; 313yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left }; 314yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right }; 315yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right }; 316yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right }; 329yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right }; 330yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right }; 382yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, 1, 1 }; 383yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1 }; 384yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1 }; 385yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, 1, 1 }; 386yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 0, 0 }; 387yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, 1, 1 }; 388yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, 1, 1 }; 389yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1 }; 402yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2 }; 403yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2 }; 510foreach (AnchorStyles oldValue in new AnchorStyles[] { AnchorStyles.Left, AnchorStyles.Top, AnchorStyles.Right, AnchorStyles.Left }) 512yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1 }; 513yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1 }; 514yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, 1, 1 }; 515yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 1, 1 }; 516yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, 1, 1 }; 517yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, 1, 1 }; 518yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1 }; 527yield return new object[] { oldValue, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2 }; 528yield return new object[] { oldValue, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2 }; 531yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, AnchorStyles.Top, 0, 0 }; 532yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top, AnchorStyles.Top, 1, 1 }; 533yield return new object[] { AnchorStyles.Left, AnchorStyles.Top, AnchorStyles.Top, 1, 1 }; 534yield return new object[] { AnchorStyles.Right, AnchorStyles.Top, AnchorStyles.Top, 1, 1 }; 536yield return new object[] { AnchorStyles.Top, AnchorStyles.Bottom, AnchorStyles.Bottom, 1, 1 }; 541yield return new object[] { AnchorStyles.Top, AnchorStyles.Left, AnchorStyles.Left, 1, 1 }; 546yield return new object[] { AnchorStyles.Top, AnchorStyles.Right, AnchorStyles.Right, 1, 1 }; 600foreach (AnchorStyles oldValue in new AnchorStyles[] { AnchorStyles.Left, AnchorStyles.Top, AnchorStyles.Right, AnchorStyles.Left }) 602yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, 1, 1, 0, 0 }; 603yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, 1, 1, 0, 0 }; 604yield return new object[] { oldValue, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, 1, 1, 0, 0 }; 611yield return new object[] { oldValue, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2, 0, 0 }; 612yield return new object[] { oldValue, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 2, 0, 0 }; 615yield return new object[] { AnchorStyles.Top, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1, 0, 0 }; 616yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1, 0, 0 }; 617yield return new object[] { AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1, 0, 0 }; 618yield return new object[] { AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, 1, 1, 1, 1 }; 620yield return new object[] { AnchorStyles.Top, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 621yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 622yield return new object[] { AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 623yield return new object[] { AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 1, 1 }; 625yield return new object[] { AnchorStyles.Top, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 626yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 627yield return new object[] { AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 628yield return new object[] { AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 1, 1 }; 630yield return new object[] { AnchorStyles.Top, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 1, 1, 0, 0 }; 631yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 1, 1, 1, 1 }; 632yield return new object[] { AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 1, 1, 0, 0 }; 633yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, 1, 1, 1, 1 }; 635yield return new object[] { AnchorStyles.Top, AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left, 1, 1, 0, 0 }; 640yield return new object[] { AnchorStyles.Top, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1, 0, 0 }; 641yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1, 0, 0 }; 642yield return new object[] { AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1, 0, 0 }; 643yield return new object[] { AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, 1, 1, 0, 0 }; 645yield return new object[] { AnchorStyles.Top, AnchorStyles.None, AnchorStyles.None, 1, 1, 0, 0 }; 650yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, AnchorStyles.Top, 0, 0, 0, 0 }; 651yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Top, AnchorStyles.Top, 1, 1, 1, 1 }; 652yield return new object[] { AnchorStyles.Left, AnchorStyles.Top, AnchorStyles.Top, 1, 1, 0, 0 }; 653yield return new object[] { AnchorStyles.Right, AnchorStyles.Top, AnchorStyles.Top, 1, 1, 1, 1 }; 655yield return new object[] { AnchorStyles.Top, AnchorStyles.Bottom, AnchorStyles.Bottom, 1, 1, 0, 0 }; 660yield return new object[] { AnchorStyles.Top, AnchorStyles.Left, AnchorStyles.Left, 1, 1, 0, 0 }; 665yield return new object[] { AnchorStyles.Top, AnchorStyles.Right, AnchorStyles.Right, 1, 1, 0, 0 }; 738yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 739yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 740yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 741yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 742yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, dock }; 743yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 744yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 745yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 758yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 759yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 792yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top, DockStyle.None, 1 }; 793yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None, 1 }; 794yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None, 1 }; 795yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None, 1 }; 796yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, dock, 0 }; 797yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 798yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None, 1 }; 799yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 812yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 813yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 4132Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4139Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4157Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4164Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4205Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4213Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4296Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4304Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4321yield return new object[] { anchor, value, value == DockStyle.None ? anchor : AnchorStyles.Top | AnchorStyles.Left }; 4362Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 4372Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\DateTimePickerTests.cs (1)
29Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
23Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\DomainUpDownTests.cs (1)
34_sub.Anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
22Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\FormTests.cs (1)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\GroupBoxTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\HScrollBarTests.cs (1)
22Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\LabelTests.cs (1)
23Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ListBoxTests.cs (1)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ListControlTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ListViewTests.cs (1)
30Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\MdiClientTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\MdiControlStripTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, mdiControlStrip.Anchor);
System\Windows\Forms\MenuStripTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\MonthCalendarTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\PanelTests.cs (1)
23Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\PictureBoxTests.cs (1)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ProgressBarTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\PropertyGridTests.cs (1)
30Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\RadioButtonTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\RichTextBoxTests.cs (1)
34Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ScrollableControlTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ScrollBarTests.cs (1)
23Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\SplitterPanelTests.cs (3)
29Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 391Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 396Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\StatusStripTests.cs (3)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 303Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 312Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\TabControlTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\TabPageTests.cs (6)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 136Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 903Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 908Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 922Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 927Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ToolStripButtonTests.cs (6)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 107Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 194Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 284Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 373Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 471Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 845Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 850Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
56Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 115Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 214Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 314Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor);
System\Windows\Forms\ToolStripDropDownTests.cs (19)
27Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 567yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 568yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 569yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 570yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 571yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, DockStyle.None }; 572yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 573yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 574yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 587yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 588yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None };
System\Windows\Forms\ToolStripItemTests.cs (11)
28Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 114Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 209Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor); 781yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left }; 782yield return new object[] { AnchorStyles.Top, AnchorStyles.Top }; 784yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right }; 785yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right }; 786yield return new object[] { (AnchorStyles)0x10, AnchorStyles.Top | AnchorStyles.Left };
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor);
System\Windows\Forms\ToolStripPanelTests.cs (1)
22Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, item.Anchor);
System\Windows\Forms\ToolStripTests.cs (26)
28Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 186Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 746yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 747yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 748yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 749yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 750yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, DockStyle.Top }; 751yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 752yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 753yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 766yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 767yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 2396Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 2405Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 2495Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 2505Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 2601Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor); 2611Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\TreeViewTests.cs (1)
23Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\UpDownBaseTests.cs (1)
20Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\UserControlTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\VScrollBarTests.cs (1)
21Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System\Windows\Forms\WebBrowserTests.cs (1)
24Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
TextBoxTests.cs (1)
26Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
TrackBarTests.cs (1)
25Assert.Equal(AnchorStyles.Top | AnchorStyles.Left, control.Anchor);
System.Windows.Forms.UI.IntegrationTests (13)
AnchorLayoutTests.cs (11)
12private const AnchorStyles AnchorAllDirection = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; 20[InlineData(AnchorStyles.Top, 120, 30, 20, 30)] 24[InlineData(AnchorStyles.Top | AnchorStyles.Left, 20, 30, 20, 30)] 25[InlineData(AnchorStyles.Top | AnchorStyles.Right, 220, 30, 20, 30)] 26[InlineData(AnchorStyles.Top | AnchorStyles.Bottom, 120, 30, 20, 330)] 28[InlineData(AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left, 20, 30, 220, 330)] 35[InlineData(AnchorStyles.Top, 120, 30, 20, 30)] 39[InlineData(AnchorStyles.Top | AnchorStyles.Left, 20, 30, 20, 30)] 40[InlineData(AnchorStyles.Top | AnchorStyles.Right, 220, 30, 20, 30)] 41[InlineData(AnchorStyles.Top | AnchorStyles.Bottom, 120, 30, 20, 330)] 43[InlineData(AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left, 20, 30, 220, 330)]
ButtonTests.cs (1)
195button.Anchor = AnchorStyles.Top | AnchorStyles.Bottom;
ImageListTests.cs (1)
101Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left,
TrimTest (1)
Form1.Designer.cs (1)
78comboBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
WinFormsControlsTest (18)
AnchorLayoutTests.Designer.cs (3)
56this.button2.Anchor = System.Windows.Forms.AnchorStyles.Top; 66this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 96this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
Calendar.Designer.cs (1)
54this.monthCalendar1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
CollectionEditors.Designer.cs (1)
80this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
DataGridViewInVirtualModeTest.Designer.cs (1)
44this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
DataGridViewTest.Designer.cs (5)
82this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 146this.changeFontButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); 159this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); 184this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); 194this.resetFontButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
ListViewTest.Designer.cs (1)
66this.listView1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
PictureBoxes.Designer.cs (3)
42this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 57this.btnloadImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 69this.imageUri.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
TrackBars.cs (2)
44trackBar1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; 51trackBar1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
TrackBars.Designer.cs (1)
58this.trackBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)