11 types derived from ToolStrip
System.Windows.Forms (5)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
11public partial class MenuStrip : ToolStrip
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.cs (1)
10internal partial class PropertyGridToolStrip : ToolStrip
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
12public partial class StatusStrip : ToolStrip
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
12public partial class ToolStripDropDown : ToolStrip
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
14public class BindingNavigator : ToolStrip, ISupportInitialize
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1628public class TransparentToolStrip : ToolStrip
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripItemTests.cs (2)
15444private class SubToolStrip : ToolStrip 15612private class ToolStripWithDisconnectCount : ToolStrip
System\Windows\Forms\ToolStripTests.cs (3)
2326private class CustomDefaultDockToolStrip : ToolStrip 3577private class CustomDefaultShowItemToolTipsToolStrip : ToolStrip 7477private class SubToolStrip : ToolStrip
615 instantiations of ToolStrip
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
759_toolStrip1 = new ToolStrip();
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
24_toolStrip = new();
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (1)
15_toolStrip = new();
System\Windows\Forms\Design\ToolStripDesignerUtilsTests.cs (1)
18_toolStrip = new();
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (1)
73using ToolStrip toolStrip = new();
ToolStripDesignerTests.cs (1)
20using ToolStrip toolStrip = new();
System.Windows.Forms.Tests (597)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1446using ToolStrip toolStrip = new(); 1513using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1547using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1585using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (9)
17using ToolStrip toolStrip = new(); 27using ToolStrip toolStrip = new() 42using ToolStrip toolStrip = new(); 53using ToolStrip toolStrip = new() 67using ToolStrip toolStrip = new() 81using ToolStrip toolStrip = new(); 109using ToolStrip toolStrip = new(); 163using ToolStrip toolStrip = new(); 949ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
13using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (1)
94using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
71using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
22using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
76using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (4)
28using ToolStrip toolStrip = new(); 57using ToolStrip toolStrip = new(); 103using ToolStrip toolStrip = new(); 192using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (8)
116using ToolStrip toolStrip = new(); 205using ToolStrip toolStrip = new(); 219using ToolStrip toolStrip = new(); 231using ToolStrip toolStrip = new(); 244using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 269using ToolStrip toolStrip = new() { GripStyle = ToolStripGripStyle.Hidden }; 285using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 312using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
200ToolStrip toolStrip = new()
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
16using ToolStrip toolStrip = new(); 27using ToolStrip toolStrip = new(); 40using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new(); 84using ToolStrip toolStrip = new() { AutoSize = false, Size = new(30, 30) }; 109using ToolStrip toolStrip = new() { AutoSize = false, Size = new(60, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
104using ToolStrip toolStrip = new(); 121using ToolStrip toolStrip = new() { Size = new Drawing.Size(500, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
28using ToolStrip toolStrip = new(); 90using ToolStrip toolStrip = new(); 134using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
55using ToolStrip toolStrip = new(); 71using ToolStrip toolStrip = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
304{ new ToolStrip(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\ControlTests.cs (4)
928using ToolStrip toolStrip1 = new() { TabStop = true, }; 929using ToolStrip toolStrip2 = new() { TabStop = true, }; 985using ToolStrip toolStrip1 = new() { TabStop = true }; 986using ToolStrip toolStrip2 = new() { TabStop = true };
System\Windows\Forms\FlowLayoutSettingsTests.cs (10)
19using ToolStrip control = new() 49using ToolStrip control = new() 62using ToolStrip control = new() 97using ToolStrip control = new() 108using ToolStrip control = new() 119using ToolStrip control = new() 131using ToolStrip control = new() 171using ToolStrip control = new() 234using ToolStrip control = new() 246using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1726using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (5)
164using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 174using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 260using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 271using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 300using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\MenuStripTests.cs (1)
356using ToolStrip control = new()
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (8)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 25using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 37using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 49using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 63using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 73using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 88using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 101using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (8)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 25using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 37using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 49using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 63using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 73using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 88using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 101using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (23)
15using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 28using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 40using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 52using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 62using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 83using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 97using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 106using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 115using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 126using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 140using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 156using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 167using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 177using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 189using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 204using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 216using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 225using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 240using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 258using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 272using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 286using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
29using ToolStrip toolStrip = new(); 45using ToolStrip toolStrip = new(); 77using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripButtonTests.cs (11)
665using ToolStrip owner = new(); 693using ToolStrip owner = new(); 738using ToolStrip parent = new(); 766using ToolStrip parent = new(); 884using ToolStrip owner = new(); 905using ToolStrip owner = new(); 1271using ToolStrip owner = new() 1362using ToolStrip owner = new() 1461using ToolStrip parent = new() 1505using ToolStrip owner = new(); 1543using ToolStrip parent = new();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
17using ToolStrip toolStrip = new(); 43using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new(); 95using ToolStrip toolStrip = new(); 121using ToolStrip toolStrip = new(); 148using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1329using ToolStrip control = new()
System\Windows\Forms\ToolStripControlHostTests.cs (16)
1386using ToolStrip parent = new(); 1387using ToolStrip otherParent = new(); 1453using ToolStrip owner = new(); 1454using ToolStrip parent = new(); 1455using ToolStrip otherParent = new(); 1531using ToolStrip parent = new(); 3046yield return new object[] { enabled, visible, image, allowDrop, null, new ToolStrip() }; 3047yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), null }; 3048yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), new ToolStrip() }; 3077using ToolStrip owner = new(); 3099using ToolStrip parent = new(); 3100using ToolStrip otherParent = new(); 3168using ToolStrip parent = new(); 3169using ToolStrip otherParent = new(); 3266using ToolStrip owner = new();
System\Windows\Forms\ToolStripDropDownItemTests.cs (2)
408using ToolStrip owner = new() 428using ToolStrip parent = new()
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1491using ToolStrip control = new() 1512using ToolStrip control = new()
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (3)
18yield return new object[] { null, new ToolStrip() }; 34yield return new object[] { graphics, new ToolStrip() }; 37graphics, new ToolStrip
System\Windows\Forms\ToolStripItemCollectionTests.cs (13)
131using ToolStrip toolStrip = new(); 157using ToolStrip toolStrip = new(); 169using ToolStrip toolStrip = new(); 257using ToolStrip toolStrip = new(); 270using ToolStrip toolStrip = new(); 283using ToolStrip toolStrip = new(); 313using ToolStrip toolStrip1 = new(); 314using ToolStrip toolStrip2 = new(); 329using ToolStrip toolStrip = new(); 343using ToolStrip toolStrip1 = new(); 344using ToolStrip toolStrip2 = new(); 360using ToolStrip toolStrip = new(); 373using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
37ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemTests.cs (278)
395using ToolStrip toolStrip = new(); 406using ToolStrip parent = new(); 431using ToolStrip parent = new(); 483using ToolStrip owner = new(); 515using ToolStrip owner = new(); 587using ToolStrip owner = new(); 614using ToolStrip owner = new(); 658using ToolStrip parent = new(); 685using ToolStrip parent = new(); 729using ToolStrip parent = new() 752using ToolStrip parent = new(); 810using ToolStrip owner = new(); 842using ToolStrip parent = new(); 894using ToolStrip owner = new(); 940using ToolStrip owner = new(); 1001using ToolStrip parent = new(); 1039using ToolStrip parent = new(); 1215using ToolStrip owner = new(); 1258using ToolStrip owner = new(); 1304using ToolStrip owner = new(); 1353using ToolStrip parent = new(); 1396using ToolStrip parent = new(); 1430using ToolStrip parent = new(); 1548using ToolStrip owner = new() 1562using ToolStrip parent = new() 1592using ToolStrip owner = new(); 1612using ToolStrip owner = new(); 1645using ToolStrip parent = new(); 1671using ToolStrip parent = new(); 1794using ToolStrip owner = new(); 1814using ToolStrip owner = new(); 1847using ToolStrip parent = new(); 1875using ToolStrip parent = new(); 1923using ToolStrip owner = new(); 1943using ToolStrip owner = new(); 1976using ToolStrip parent = new(); 2000using ToolStrip parent = new(); 2060using ToolStrip owner = new(); 2071using ToolStrip parent = new(); 2135using ToolStrip owner = new(); 2176using ToolStrip owner = new(); 2228using ToolStrip parent = new(); 2252using ToolStrip parent = new(); 2379using ToolStrip owner = new(); 2412using ToolStrip parent = new(); 2471using ToolStrip owner = new() 2493using ToolStrip parent = new() 2619using ToolStrip owner = new(); 2646using ToolStrip owner = new(); 2683using ToolStrip owner = new(); 2711using ToolStrip owner = new(); 2754using ToolStrip parent = new(); 2781using ToolStrip parent = new(); 2818using ToolStrip parent = new(); 2858using ToolStrip parent = new(); 2935using ToolStrip parent = new() 2953using ToolStrip owner = new() 3007using ToolStrip owner = new(); 3048using ToolStrip owner = new(); 3101using ToolStrip parent = new(); 3135using ToolStrip parent = new(); 3238using ToolStrip owner = new() 3252using ToolStrip parent = new() 3282using ToolStrip owner = new(); 3302using ToolStrip owner = new(); 3335using ToolStrip parent = new(); 3364using ToolStrip parent = new(); 3482using ToolStrip owner = new(); 3518using ToolStrip owner = new(); 3570using ToolStrip parent = new(); 3616using ToolStrip parent = new(); 3678using ToolStrip owner = new() 3698using ToolStrip owner = new() 3719using ToolStrip owner = new() 3744using ToolStrip parent = new() 3766using ToolStrip parent = new() 3900using ToolStrip owner = new(); 3945using ToolStrip owner = new(); 4003using ToolStrip parent = new(); 4038using ToolStrip parent = new(); 4106using ToolStrip owner = new() 4151using ToolStrip owner = new() 4199using ToolStrip owner = new(); 4246using ToolStrip owner = new(); 4298using ToolStrip parent = new(); 4330using ToolStrip parent = new(); 4457using ToolStrip owner = new(); 4503using ToolStrip owner = new() 4551using ToolStrip owner = new(); 4607using ToolStrip parent = new(); 4646using ToolStrip parent = new() 4685using ToolStrip parent = new(); 4788using ToolStrip owner = new() 4866using ToolStrip owner = new() 4957using ToolStrip owner = new(); 5005using ToolStrip owner = new() 5051using ToolStrip owner = new(); 5105using ToolStrip parent = new(); 5142using ToolStrip parent = new() 5179using ToolStrip parent = new(); 5287using ToolStrip owner = new() 5379using ToolStrip owner = new() 5426using ToolStrip owner = new(); 5466using ToolStrip owner = new(); 5518using ToolStrip parent = new(); 5550using ToolStrip parent = new(); 5649using ToolStrip owner = new(); 5682using ToolStrip owner = new(); 5716using ToolStrip parent = new(); 5749using ToolStrip parent = new(); 5814using ToolStrip owner = new(); 5836using ToolStrip owner = new() 5852using ToolStrip parent = new(); 5874using ToolStrip parent = new() 5918using ToolStrip owner = new(); 5957using ToolStrip owner = new(); 6009using ToolStrip parent = new(); 6048using ToolStrip parent = new(); 6250using ToolStrip owner = new(); 6295using ToolStrip owner = new(); 6351using ToolStrip parent = new(); 6387using ToolStrip parent = new(); 6443using ToolStrip owner = new(); 6444using ToolStrip otherOwner = new(); 6492using ToolStrip owner = new(); 6493using ToolStrip otherOwner = new(); 6551using ToolStrip owner = new() 6582using ToolStrip owner = new(); 6583using ToolStrip otherOwner = new(); 6632using ToolStrip owner = new(); 6664using ToolStrip parent = new(); 6747using ToolStrip owner = new(); 6786using ToolStrip owner = new(); 6838using ToolStrip parent = new(); 6870using ToolStrip parent = new(); 6965using ToolStrip parent = new(); 6966using ToolStrip otherParent = new(); 7021using ToolStrip parent = new(); 7022using ToolStrip otherParent = new(); 7102using ToolStrip owner = new() 7119using ToolStrip parent = new() 7133using ToolStrip owner = new() 7137using ToolStrip parent = new() 7181using ToolStrip owner = new() 7223using ToolStrip owner = new() 7291using ToolStrip parent = new() 7326using ToolStrip parent = new() 7492using ToolStrip owner = new(); 7530using ToolStrip owner = new(); 7591using ToolStrip parent = new(); 7630using ToolStrip parent = new(); 7710using ToolStrip owner = new(); 7748using ToolStrip parent = new(); 7859using ToolStrip owner = new(); 7895using ToolStrip owner = new(); 7954using ToolStrip parent = new(); 7997using ToolStrip parent = new(); 8085using ToolStrip owner = new(); 8127using ToolStrip owner = new(); 8179using ToolStrip parent = new(); 8212using ToolStrip parent = new(); 8315using ToolStrip owner = new(); 8362using ToolStrip owner = new(); 8414using ToolStrip parent = new(); 8446using ToolStrip parent = new(); 8504using ToolStrip owner = new() 8522using ToolStrip parent = new() 8536using ToolStrip owner = new() 8540using ToolStrip parent = new() 8587using ToolStrip owner = new() 8629using ToolStrip owner = new() 8684using ToolStrip parent = new() 8719using ToolStrip parent = new() 8842using ToolStrip owner = new(); 8885using ToolStrip owner = new(); 8937using ToolStrip parent = new(); 8969using ToolStrip parent = new(); 9133using ToolStrip owner = new() 9155using ToolStrip parent = new() 9265using ToolStrip owner = new(); 9308using ToolStrip owner = new(); 9354using ToolStrip owner = new(); 9403using ToolStrip parent = new(); 9446using ToolStrip parent = new(); 9480using ToolStrip parent = new(); 9649using ToolStrip owner = new(); 9685using ToolStrip owner = new(); 9737using ToolStrip parent = new(); 9783using ToolStrip parent = new(); 9913using ToolStrip owner = new(); 9955using ToolStrip parent = new(); 10066using ToolStrip owner = new(); 10110using ToolStrip parent = new(); 10175using ToolStrip parent = new(); 10189using ToolStrip parent = new() 10206using ToolStrip owner = new(); 10220using ToolStrip owner = new() 10279using ToolStrip parent = new(); 10290using ToolStrip owner = new(); 10322using ToolStrip owner = new(); 10337using ToolStrip parent = new(); 10382using ToolStrip owner = new(); 10398using ToolStrip owner = new(); 10428using ToolStrip parent = new(); 10444using ToolStrip parent = new(); 10492using ToolStrip owner = new(); 10509using ToolStrip owner = new(); 10540using ToolStrip parent = new(); 10557using ToolStrip parent = new(); 10636using ToolStrip owner = new(); 10666using ToolStrip owner = new(); 10710using ToolStrip parent = new(); 10740using ToolStrip parent = new(); 10790using ToolStrip owner = new(); 10814using ToolStrip owner = new(); 10848using ToolStrip parent = new(); 10879using ToolStrip parent = new(); 11169using ToolStrip owner = new(); 11202using ToolStrip owner = new(); 11248using ToolStrip parent = new(); 11281using ToolStrip parent = new(); 11363using ToolStrip owner = new(); 11401using ToolStrip owner = new(); 11452using ToolStrip parent = new(); 11483using ToolStrip parent = new(); 11551using ToolStrip owner = new(); 11581using ToolStrip owner = new(); 11625using ToolStrip parent = new(); 11655using ToolStrip parent = new(); 11844using ToolStrip owner = new() 11876using ToolStrip parent = new() 11944using ToolStrip owner = new() 11976using ToolStrip owner = new() 12009using ToolStrip parent = new() 12041using ToolStrip parent = new() 12208using ToolStrip owner = new() 12273using ToolStrip owner = new(); 12319using ToolStrip owner = new(); 12384using ToolStrip parent = new(); 12421using ToolStrip parent = new(); 12530yield return new object[] { enabled, visible, image, allowDrop, null, new ToolStrip() }; 12531yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), null }; 12532yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), new ToolStrip() }; 12741using ToolStrip owner = new(); 12791using ToolStrip owner = new(); 12854using ToolStrip parent = new(); 12897using ToolStrip parent = new(); 12977using ToolStrip owner = new(); 13027using ToolStrip owner = new(); 13090using ToolStrip parent = new(); 13133using ToolStrip parent = new(); 13262using ToolStrip owner = new(); 13306using ToolStrip owner = new(); 13372using ToolStrip owner = new(); 13438using ToolStrip owner = new(); 13498using ToolStrip parent = new(); 13542using ToolStrip parent = new(); 13673using ToolStrip control = new(); 13742using ToolStrip owner = new(); 13794using ToolStrip owner = new(); 13862using ToolStrip parent = new(); 13899using ToolStrip parent = new(); 13989using ToolStrip parent = new(); 14358using ToolStrip owner = new(); 14377using ToolStrip owner = new(); 14447using ToolStrip parent = new(); 14466using ToolStrip parent = new(); 14580using ToolStrip owner = new(); 14627using ToolStrip owner = new(); 14701using ToolStrip parent = new(); 14755using ToolStrip parent = new(); 14927using ToolStrip owner = new(); 14970using ToolStrip owner = new(); 15016using ToolStrip owner = new(); 15065using ToolStrip parent = new(); 15108using ToolStrip parent = new(); 15142using ToolStrip parent = new();
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
18using ToolStrip toolStrip1 = new(); 19using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripPanelTests.cs (2)
348using ToolStrip toolStrip1 = new(); 349using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripRendererTests.cs (4)
140yield return new object[] { new ToolStripGripRenderEventArgs(graphics, new ToolStrip()) }; 477yield return new object[] { new ToolStrip() }; 524yield return new object[] { new ToolStripRenderEventArgs(graphics, new ToolStrip()) }; 669yield return new object[] { new ToolStrip() };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (8)
18yield return new object[] { null, new ToolStrip() }; 31yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.Control }; 32yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(0, 0, 100, 25), Color.Red }; 54yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control }; 55yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Empty, Color.Red }; 58yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Blue, Color.Blue }; 78yield return new object[] { new ToolStrip() }; 84ToolStrip owner = new();
System\Windows\Forms\ToolStripSeparatorTests.cs (15)
802using ToolStrip owner = new() 850using ToolStrip parent = new() 943using ToolStrip owner = new(); 974using ToolStrip owner = new(); 1018using ToolStrip parent = new(); 1049using ToolStrip parent = new(); 1132using ToolStrip owner = new() 1168using ToolStrip parent = new() 1219using ToolStrip owner = new() 1224using ToolStrip parent = new() 1290using ToolStrip owner = new() 1343using ToolStrip owner = new(); 1344using ToolStrip parent = new(); 1400using ToolStrip owner = new(); 1523using ToolStrip parent = new();
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
15using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
14_toolStrip = new();
System\Windows\Forms\ToolStripTests.cs (121)
328Assert.Throws<ArgumentNullException>("toolStripItems", () => new ToolStrip(null)); 334Assert.Throws<ArgumentNullException>("value", () => new ToolStrip([null])); 361using ToolStrip control = new() 386using ToolStrip control = new(); 415using ToolStrip control = new(); 452using ToolStrip control = new(); 499using ToolStrip control = new(); 531using ToolStrip control = new(); 575using ToolStrip control = new() 590using ToolStrip control = new() 611using ToolStrip control = new(); 640using ToolStrip control = new(); 676using ToolStrip control = new() 691using ToolStrip control = new() 713using ToolStrip control = new(); 776using ToolStrip control = new(); 804using ToolStrip control = new(); 821using ToolStrip control = new(); 848using ToolStrip control = new(); 870using ToolStrip control = new() 887using ToolStrip control = new(); 915using ToolStrip control = new() 973using ToolStrip control = new() 1024using ToolStrip control = new() 1069using ToolStrip control = new() 1090using ToolStrip control = new() 1105using ToolStrip control = new() 1122using ToolStrip control = new() 1139using ToolStrip control = new() 1157using ToolStrip control = new(); 1200using ToolStrip control = new(); 1227using ToolStrip control = new(); 1275using ToolStrip control = new() 1296using ToolStrip control = new() 1335using ToolStrip control = new() 1351using ToolStrip control = new(); 1393using ToolStrip control = new(); 1407using ToolStrip control = new() 1428using ToolStrip control = new() 1462using ToolStrip control = new(); 1506using ToolStrip control = new(); 1571using ToolStrip control = new(); 1629using ToolStrip toolStrip1 = new(); 1649using ToolStrip toolStrip1 = new(); 1750using ToolStrip control = new() 1776using ToolStrip control = new() 1880using ToolStrip control = new() 1911using ToolStrip control = new() 2016using ToolStrip control = new() 2161using ToolStrip control = new() 2178using ToolStrip control = new(); 2207using ToolStrip control = new(); 2223using ToolStrip control = new(); 2243using ToolStrip control = new(); 2374using ToolStrip control = new() 2458using ToolStrip control = new() 2564using ToolStrip control = new() 2629using ToolStrip control = new() 2668using ToolStrip control = new(); 2676using ToolStrip control = new() 2692using ToolStrip control = new(); 2728using ToolStrip control = new(); 2746using ToolStrip control = new(); 2766using ToolStrip control = new(); 2796using ToolStrip control = new(); 2826using ToolStrip control = new(); 2865using ToolStrip control = new(); 2894using ToolStrip control = new() 2922using ToolStrip control = new() 2986using ToolStrip control = new() 3089using ToolStrip control = new() 3150using ToolStrip control = new() 3189using ToolStrip control = new(); 3232using ToolStrip control = new() 3255using ToolStrip control = new(); 3299using ToolStrip control = new(); 3342using ToolStrip control = new() 3378using ToolStrip control = new(); 3406using ToolStrip control = new(); 3434using ToolStrip control = new(); 3441using ToolStrip control = new(); 3451using ToolStrip control = new(); 3479using ToolStrip control = new(); 3509using ToolStrip control = new(); 3530using ToolStrip control = new(); 3566using ToolStrip control = new(); 3586using ToolStrip control = new() 3609using ToolStrip control = new(); 3633using ToolStrip control = new(); 3658using ToolStrip control = new() 3680using ToolStrip control = new(); 3781using ToolStrip control = new() 3823using ToolStrip control = new(); 3852using ToolStrip control = new(); 3894using ToolStrip control = new(); 3931using ToolStrip control = new(); 3974using ToolStrip control = new(); 4033using ToolStrip control = new(); 4095using ToolStrip control = new(); 4103using ToolStrip control = new() 4171using ToolStrip control = new() 4359using ToolStrip control = new(); 4410using ToolStrip control = new() 4464using ToolStrip control = new(); 4780using ToolStrip toolStrip = new(); 4789using ToolStrip toolStrip = new(); 4812using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4833using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4858using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4879using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 7044using ToolStrip control = new(); 7114using ToolStrip otherControl = new(); 7137using ToolStrip otherControl = new(); 7293using ToolStrip toolStrip = new() { LayoutStyle = toolStripLayoutStyle, TabStop = tabStop, GripStyle = gripStyle }; 7348using ToolStrip toolStrip = new(); 7361using ToolStrip toolStrip = new(); 7370using ToolStrip toolStrip = new(); 7382using ToolStrip toolStrip = new(); 7394using var toolStrip = new ToolStrip() { AutoScrollMargin = new Size(10, 20) }; 7402using ToolStrip toolStrip = new(); 7424using ToolStrip toolStrip = new() { GripMargin = new Padding(1) };
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
17using ToolStrip toolStrip = new ToolStrip
TrackBarTests.cs (1)
401using ToolStrip control = new()
System.Windows.Forms.UI.IntegrationTests (4)
Dpi\ToolStripItemTests.Dpi.cs (1)
37using ToolStrip toolStrip = new();
DragDropTests.cs (2)
957public ToolStrip ToolStrip = new(); 1017ToolStrip = new()
ToolStripTests.cs (1)
37using ToolStrip toolStrip = new()
TestPassApp (2)
Menu_Toolbars_controls.Designer.cs (1)
91toolStrip1 = new ToolStrip();
ToolStripContainer.Designer.cs (1)
34this.toolStrip1 = new System.Windows.Forms.ToolStrip();
WinFormsControlsTest (6)
DragDrop.cs (1)
439ToolStrip toolStrip = new()
ToolStripSeparatorPreferredSize.cs (1)
31_toolStrip1 = new ToolStrip();
ToolStripTests.Designer.cs (4)
34this.toolStrip1 = new System.Windows.Forms.ToolStrip(); 43this.toolStrip2 = new System.Windows.Forms.ToolStrip(); 56this.toolStrip3 = new System.Windows.Forms.ToolStrip(); 59this.toolStrip4 = new System.Windows.Forms.ToolStrip();
1104 references to ToolStrip
DesignSurface (2)
MainForm.cs (2)
291ToolStrip toolStrip1 = surface.CreateControl<ToolStrip>(new Size(400, 50), new Point(0, 0));
System.Windows.Forms (253)
src\Common\src\Obsoletions.cs (1)
39internal const string ToolBarMessage = $"`{nameof(ToolBar)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(ToolStrip)}` instead.";
System\Windows\Forms\Control.cs (1)
9913if (ctl._parent is ToolStrip)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
133internal void HandleToolStripMouseLeave(ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\MergeHistory.cs (2)
10public MergeHistory(ToolStrip mergedToolStrip) 18public ToolStrip MergedToolStrip { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
2269ToolStrip toolStrip = (ToolStrip)container; 2333ToolStrip toolStrip = (ToolStrip)container; 2422internal virtual ToolStrip? GetToplevelOwnerToolStrip() 4075protected static void SetItemParent(ToolStripItem item, ToolStrip parent) 4445internal void SnapFocusChange(ToolStrip otherToolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (2)
10private readonly ToolStrip _ownerToolStrip; 12public RestoreFocusMessageFilter(ToolStrip ownerToolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (11)
12public ToolStripAccessibleObject(ToolStrip owner) : base(owner) 17=> this.IsOwnerHandleCreated(out ToolStrip? _) ? HitTest((int)x, (int)y) : null; 24if (!this.IsOwnerHandleCreated(out ToolStrip? owner)) 42if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 122if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 151if (!this.TryGetOwnerAs(out ToolStrip? owner) || fragmentIndex < 0) 260if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.OverflowItems is null) 270if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.DisplayedItems is null) 280if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 325if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 383if (!this.IsOwnerHandleCreated(out ToolStrip? _))
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (4)
683protected override void OnParentChanged(ToolStrip? oldParent, ToolStrip? newParent) 690= GetControlCollection(_control.ParentInternal as ToolStrip); 796private static ReadOnlyControlCollection? GetControlCollection(ToolStrip? toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripCustomIComparer.cs (3)
6internal class ToolStripCustomIComparer : IComparer<ToolStrip> 8public int Compare(ToolStrip? x, ToolStrip? y)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (10)
635internal ToolStrip? OwnerToolStrip 641ToolStrip? owner = _ownerItem.ParentInternal; 911ToolStrip? toplevelOwnerToolStrip = GetToplevelOwnerToolStrip(); 1057internal override ToolStrip? GetToplevelOwnerToolStrip() 1312ToolStrip? toplevelToolStrip = GetToplevelOwnerToolStrip(); 1362ToolStrip? toplevel = GetToplevelOwnerToolStrip(); 1668ToolStrip? topLevelToolStrip = GetToplevelOwnerToolStrip(); 1669ToolStrip? parentToolStrip = OwnerItem?.ParentInternal; 1756ToolStrip? toolStrip = GetToplevelOwnerToolStrip(); 2030internal static ToolStripDropDown? GetFirstDropDown(ToolStrip start)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
127ToolStrip? parent = ParentInternal;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
166if (_owner.DropDown.AccessibilityObject is ToolStrip.ToolStripAccessibleObject toolStripAccessibleObject)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (4)
17private readonly ToolStrip _owner; 19public ToolStrip Owner => _owner; 21public ToolStripDropTargetManager(ToolStrip owner) 224if (dragEnterArgs.DropImageType > DropImageType.Invalid && _owner is ToolStrip toolStrip && toolStrip.IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (2)
14private Point _lastEndLocation = ToolStrip.s_invalidMouseEnter; 49_lastEndLocation = ToolStrip.s_invalidMouseEnter;
System\Windows\Forms\Controls\ToolStrips\ToolStripGripRenderEventArgs.cs (1)
13public ToolStripGripRenderEventArgs(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
58ToolStrip toolStrip = e.ToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (16)
32private ToolStrip? _parent; 33private ToolStrip? _owner; 1202ToolStrip? parent = ParentInternal; 1405public ToolStrip? Owner 1475protected internal ToolStrip? Parent 1527internal ToolStrip? ParentInternal 1534ToolStrip? oldParent = _parent; 1561ToolStrip? ownerToolStrip = Owner; 1612/// Returns the parent <see cref="ToolStrip"/>'s renderer 2326public ToolStrip? GetCurrentParent() => Parent; 2664ToolStrip? parent = ParentInternal; 2893protected virtual void OnParentChanged(ToolStrip? oldParent, ToolStrip? newParent) 3182internal void SetOwner(ToolStrip? newOwner) 3428ToolStrip? parent = ParentInternal; 3502internal ToolStrip? RootToolStrip
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (9)
93/// For <see cref="ToolStrip" /> hash code is unique even with child controls. 235ToolStrip? parent = Owner.ParentInternal; 363if (Parent is ToolStrip.ToolStripAccessibleObject toolStripParent) 373if (toolStripOverflowButtonParent.Parent is ToolStrip.ToolStripAccessibleObject toolStripGrandParent) 389if (Parent is ToolStrip.ToolStripAccessibleObject toolStripParent) 396if (toolStripOverflowButtonParent.Parent is ToolStrip.ToolStripAccessibleObject toolStripGrandParent) 412if (Parent is ToolStrip.ToolStripAccessibleObject toolStripParent) 419if (toolStripOverflowButtonParent.Parent is ToolStrip.ToolStripAccessibleObject toolStripGrandParent) 447ToolStrip? root = _ownerItem.RootToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (2)
54protected virtual ToolStrip? ParentInternal => _ownerItem?.ParentInternal; 183ToolStrip? parent = ParentInternal;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.ToolStripLayoutData.cs (2)
18public ToolStripLayoutData(ToolStrip toolStrip) 25public bool IsCurrent(ToolStrip? toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (5)
16private readonly ToolStrip? _owner; 24internal ToolStripItemCollection(ToolStrip? owner, bool itemsCollection) 29internal ToolStripItemCollection(ToolStrip? owner, bool itemsCollection, bool isReadOnly) 36public ToolStripItemCollection(ToolStrip owner, ToolStripItem[] value) 389ToolStrip? parent = item.ParentInternal;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemRenderEventArgs.cs (1)
32public ToolStrip? ToolStrip => Item.ParentInternal;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (2)
256ToolStrip? parent = Parent; 271ToolStrip? parent = Parent;
System\Windows\Forms\Controls\ToolStrips\ToolStripLocationCancelEventHandler.cs (2)
8/// <see cref="ToolStrip.OnLocationChanging"/> event for <see cref="ToolStrip"/>.
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (35)
15private static WeakRefCollection<ToolStrip>? t_activeToolStrips; 132internal static WeakRefCollection<ToolStrip> ToolStrips 148public static ToolStrip? FindToolStrip(string toolStripName) 150foreach (ToolStrip toolStrip in ToolStrips) 164internal static ToolStrip? FindToolStrip(Form owningForm, string toolStripName) 166ToolStrip? result = null; 167foreach (ToolStrip toolStrip in ToolStrips) 182private static bool CanChangeSelection(ToolStrip start, ToolStrip toolStrip) 211private static bool ChangeSelection(ToolStrip start, ToolStrip toolStrip) 294foreach (ToolStrip toolStrip in ToolStrips) 324internal static bool SelectNextToolStrip(ToolStrip start, bool forward) 332ToolStrip? wrappedControl = null; 333ToolStrip? nextControl = null; 343if (ToolStrips[index] is not ToolStrip toolStrip || 716foreach (ToolStrip toolStrip in ToolStrips) 795foreach (ToolStrip toolStrip in ToolStrips) 843ToolStrip? topMostToolStrip = toolStrip.GetToplevelOwnerToolStrip(); 1058internal static List<ToolStrip> FindMergeableToolStrips(ContainerControl? container) 1060List<ToolStrip> result = []; 1063foreach (ToolStrip toolStrip in ToolStrips) 1077private static bool IsSpecialMDIStrip(ToolStrip toolStrip) 1083public static bool Merge(ToolStrip sourceToolStrip, ToolStrip targetToolStrip) 1255public static bool Merge(ToolStrip sourceToolStrip, string targetName) 1260ToolStrip? target = FindToolStrip(targetName); 1267internal static bool RevertMergeInternal(ToolStrip targetToolStrip, ToolStrip? sourceToolStrip, bool revertMDIControls) 1303Stack<ToolStrip> reApply = new(); 1348ToolStrip mergeAgain = reApply.Pop(); 1364public static bool RevertMerge(ToolStrip targetToolStrip) 1370public static bool RevertMerge(ToolStrip targetToolStrip, ToolStrip sourceToolStrip) 1377=> FindToolStrip(targetName) is ToolStrip target && RevertMerge(target);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (16)
34private List<ToolStrip>? _inputFilterQueue; 44private ToolStrip? _toplevelToolStrip; 232internal static ToolStrip? GetActiveToolStrip() => Instance.GetActiveToolStripInternal(); 234internal ToolStrip? GetActiveToolStripInternal() 247private ToolStrip? GetCurrentTopLevelToolStrip() 251ToolStrip? activeToolStrip = GetActiveToolStripInternal(); 270if (Control.FromHandle(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown) 329ToolStrip? activeToolStrip = GetActiveToolStripInternal(); 386internal static void SetActiveToolStrip(ToolStrip toolStrip, bool menuKeyPressed) 396internal static void SetActiveToolStrip(ToolStrip toolStrip) 399private void SetActiveToolStripCore(ToolStrip toolStrip) 434ToolStrip? currentActiveToolStrip = GetActiveToolStripInternal(); 487internal static void RemoveActiveToolStrip(ToolStrip toolStrip) 492private void RemoveActiveToolStripCore(ToolStrip toolStrip) 527ToolStrip? activeToolStrip = GetActiveToolStrip(); 587ToolStrip? toplevelToolStrip = GetCurrentTopLevelToolStrip();
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
30private ToolStrip? _lastOwner; 375ToolStrip? owner = Owner;
System\Windows\Forms\Controls\ToolStrips\ToolStripNumericUpDown.ToolStripNumericUpDownControl.cs (1)
10public ToolStrip? ParentToolStrip { get; private set; }
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
42private ToolStrip? ParentToolStrip
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (3)
14private readonly ToolStrip _parentToolStrip; 19internal ToolStripOverflowButton(ToolStrip parentToolStrip) 49internal ToolStrip ParentToolStrip => _parentToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (16)
416private Point GetStartLocation(ToolStrip toolStripToDrag) 456var toolStrip = e.Control as ToolStrip; 538var toolStrip = controls[i] as ToolStrip; 643var toolStrip = controlArray[i] as ToolStrip; 666private void GiveToolStripPanelFeedback(ToolStrip toolStripToDrag, Point screenLocation) 709public void Join(ToolStrip toolStripToDrag) 714public void Join(ToolStrip toolStripToDrag, int row) 741public void Join(ToolStrip toolStripToDrag, int x, int y) 746public void Join(ToolStrip toolStripToDrag, Point location) 770internal void MoveControl(ToolStrip? toolStripToDrag, Point screenLocation) 790private void MoveInsideContainer(ToolStrip toolStripToDrag, Point clientLocation) 983private void MoveOutsideContainer(ToolStrip toolStripToDrag, Point screenLocation) 996ToolStrip draggedControl = toolStripToDrag;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.cs (1)
15: base(owner, typeof(ToolStrip))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (3)
18private ToolStrip _wrappedToolStrip; 50if (control is not ToolStrip toolStrip) 52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))), control.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (7)
265public bool CanMove(ToolStrip toolStripToDrag) 339internal Size GetMinimumSize(ToolStrip toolStrip) 460Size minSize = GetMinimumSize((ToolStrip)currentCell.Control); 557Size minSize = GetMinimumSize((ToolStrip)currentCell.Control); 703internal void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) 708internal void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) 713internal void LeaveRow(ToolStrip toolStripToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (5)
80public override bool CanMove(ToolStrip toolStripToDrag) 88totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 139public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) 350public override void LeaveRow(ToolStrip toolStripToDrag) 391public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
78throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))); 210throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip)));
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (4)
19public virtual bool CanMove(ToolStrip toolStripToDrag) 171public virtual void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) 176public virtual void LeaveRow(ToolStrip toolStripToDrag) 180public virtual void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (5)
82public override bool CanMove(ToolStrip toolStripToDrag) 90totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 141public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) 398public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) 560public override void LeaveRow(ToolStrip toolStripToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
118ToolStrip toolStrip = e.ToolStrip; 401ToolStrip toolStrip = e.ToolStrip; 484ToolStrip toolStrip = e.ToolStrip; 834internal override Region? GetTransparentRegion(ToolStrip toolStrip) 903ToolStrip toolStrip = e.ToolStrip; 1173ToolStrip toolStrip = e.ToolStrip; 1339ToolStrip toolStrip = e.ToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
561internal virtual Region? GetTransparentRegion(ToolStrip toolStrip) 566protected internal virtual void Initialize(ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (3)
15public ToolStripRenderEventArgs(Graphics g, ToolStrip toolStrip) 25ToolStrip toolStrip, 48public ToolStrip ToolStrip { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
171ToolStrip? parent = ParentInternal ?? Owner; 259ToolStrip? parent = ParentInternal ?? Owner;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (16)
28List<ToolStrip> toolStripControls = []; 31foreach (ToolStrip toolStrip in toolStripControls) 50List<ToolStrip> toolStripControls = []; 53foreach (ToolStrip toolStrip in toolStripControls) 72internal static string GetItemOrder(ToolStrip toolStrip) 101Dictionary<string, ToolStrip> itemLocationHash = BuildItemOriginationHash(); 116ToolStrip? toolStrip = ToolStripManager.FindToolStrip(_form, toolStripSettings.Name); 161ToolStrip? toolStrip = ToolStripManager.FindToolStrip(_form, settings.Name); 174private static void ApplyToolStripSettings(ToolStrip? toolStrip, SettingsStub settings, Dictionary<string, ToolStrip> itemLocationHash) 198if (!string.IsNullOrEmpty(key) && itemLocationHash.TryGetValue(key, out ToolStrip? value)) 210private Dictionary<string, ToolStrip> BuildItemOriginationHash() 212Dictionary<string, ToolStrip> itemLocationHash = []; 214List<ToolStrip> toolStripControls = []; 217foreach (ToolStrip toolStrip in toolStripControls) 275private string GetSettingsKey(ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (1)
22public SettingsStub(ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButtonLayout.cs (1)
30protected override ToolStrip? ParentInternal
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (7)
14private readonly ToolStrip _owner; 16public ToolStripSplitStackDragDropHandler(ToolStrip owner) 143insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Top, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth); 146insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Bottom, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth); 149insertionRect = new Rectangle(item.Bounds.Right, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1); 152insertionRect = new Rectangle(item.Bounds.Left, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1); 162insertionRect.Width = ToolStrip.s_insertionBeamWidth;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (14)
14internal ToolStripSplitStackLayout(ToolStrip owner) 33ToolStrip toolStrip = ToolStrip; 52public ToolStrip ToolStrip { get; } 61ToolStrip toolStrip = ToolStrip; 111ToolStrip toolStrip = ToolStrip; 156if (!(container is ToolStrip)) 163return ToolStrip.GetPreferredSizeHorizontal(container, proposedConstraints); 167return ToolStrip.GetPreferredSizeVertical(container); 182if (!(container is ToolStrip)) 210ToolStrip toolStrip = ToolStrip; 356ToolStrip toolStrip = ToolStrip; 372toolStripPreferredSize = ToolStrip.GetPreferredSizeVertical(toolStrip) - toolStrip.Padding.Size; 522ToolStrip toolStrip = ToolStrip; 545ToolStrip toolStrip = ToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
185ToolStrip toolStrip = e.ToolStrip; 237ToolStrip toolStrip = e.ToolStrip; 678ToolStrip? parent = item.GetCurrentParent();
System\Windows\Forms\Form.cs (3)
6170ToolStrip? thisToolstrip = MainMenuStrip; 6171List<ToolStrip> childrenToolStrips = ToolStripManager.FindMergeableToolStrips(ActiveMdiChildInternal); 6186foreach (ToolStrip sourceToolStrip in childrenToolStrips)
System\Windows\Forms\OLE\DropTarget.cs (1)
30&& toolStripTargetManager?.Owner is ToolStrip toolStrip
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
22private ToolStrip _toolStrip1;
System.Windows.Forms.Design (131)
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
169newParent = control is ToolStrip ? GetParent(control) : _toolStripContainer.ContentPanel;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (6)
35if (component is ToolStrip) 145if (controls[0] is not ToolStrip control) 158control = (ToolStrip)temp[0]; 195if (controls.Count == 1 && control is ToolStrip) 230if (dragComponent is ToolStrip tool && tool.Parent != _relatedControl) 270if (item.GetType(host) == typeof(ToolStrip)
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (3)
46ToolStrip toolStrip = _designer.Component as ToolStrip; 120private static Control GetParent(ToolStripContainer container, ToolStrip c)
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (3)
35internal GlyphCollection GetGlyphs(ToolStrip parent, GlyphCollection glyphs, Behavior.Behavior standardBehavior) 66if (Control is ToolStrip miniToolStrip) 78if (Control is ToolStrip miniToolStrip)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
940&& ce.Component is not ToolStrip
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
363if (ce.Component is ToolStrip && _toolStripAdornerWindowService is null && TryGetService(out IDesignerHost _)) 375if (ce.Component is ToolStrip && _toolStripAdornerWindowService is not null)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
55CreateStandardToolStrip(_host, (ToolStrip)_designer.Component); 261private void CreateStandardToolStrip(IDesignerHost host, ToolStrip tool)
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (2)
31private ToolStrip ParentTool 67ToolStrip parent = ParentTool;
System\Windows\Forms\Design\ToolStripActionList.cs (2)
11private readonly ToolStrip _toolStrip; 20_toolStrip = (ToolStrip)designer.Component;
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (1)
12if (parent is not ToolStrip toolStrip)
System\Windows\Forms\Design\ToolStripCollectionEditor.cs (1)
54if (primarySelection is ToolStrip)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (12)
136ToolStrip realToolStrip = ToolStripFromObject(Context.Instance); 396ToolStrip ownerToolStrip = Context is { Instance: not null } contextInstance 812if (selectedItems.Length == 1 && selectedItems[0] is ToolStrip toolStrip) 814ToolStrip parentStrip = toolStrip; 840if (obj is ToolStrip) 885selectedItem = _listBoxItems.SelectedItem is ToolStrip strip ? strip : (ToolStripItem)_listBoxItems.SelectedItem; 971internal static ToolStrip ToolStripFromObject(object instance) 973ToolStrip currentToolStrip = null; 977currentToolStrip = instance is ToolStripDropDownItem toolStripDropDownItem ? toolStripDropDownItem.DropDown : instance as ToolStrip; 1246public ToolStrip _host; 1250if (componentItem is ToolStrip toolStrip) 1268public ToolStrip Host => _host;
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
176else if (typeof(ToolStrip).IsAssignableFrom(toolType)) 349else if (typeof(ToolStrip).IsAssignableFrom(toolType))
System\Windows\Forms\Design\ToolStripCustomTypeDescriptor.cs (2)
10private readonly ToolStrip _instance; 14public ToolStripCustomTypeDescriptor(ToolStrip instance) : base()
System\Windows\Forms\Design\ToolStripDesigner.cs (12)
32private ToolStrip _miniToolStrip; // the toolStrip that hosts the "New Template Node" button 278internal ToolStrip EditorToolStrip 409protected ToolStrip ToolStrip 411get => (ToolStrip)Component; 886if (_toolStripSelected && e.Component is ToolStrip) 1011ToolStrip parent = changingItem.Owner; 1350if (comp is ToolStrip) 1537if (c is ToolStrip && (c != ToolStrip)) 1561if (c is ToolStrip && menu is null) 1773if (selComp is ToolStrip) 1801ToolStrip parentToolStrip = ToolStrip; 2178if (sender is ToolStrip tool && !tool.Visible)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (6)
87private static ToolStrip GetToolStripFromComponent(IComponent component) 89ToolStrip parent; 103parent = component as ToolStrip; 193ToolStrip toolStrip = GetToolStripFromComponent(component); 212private static ToolStripItemDesignerAvailability GetDesignerVisibility(ToolStrip toolStrip) 252ToolStrip toolStrip = GetToolStripFromComponent(component);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
80get => ((ToolStrip)Component).Items;
System\Windows\Forms\Design\ToolStripInSituService.cs (1)
235if (comp is ToolStrip)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (7)
50ToolStrip oldSelectionParent = oldSelection.GetCurrentParent(); 51ToolStrip newSelectionParent = newSelection.GetCurrentParent(); 395ToolStrip parent = null; 552ToolStrip parentToolStrip = itemDesigner.GetMainToolStrip(); 600ToolStrip owner = selectedItem.Owner; 657ToolStrip parentToolStrip = currentDropItem.GetCurrentParent(); 982ToolStrip parentToolStrip = itemDesigner.GetMainToolStrip();
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
58private ToolStrip ParentTool 514ToolStrip parent = ParentTool;
System\Windows\Forms\Design\ToolStripItemDataObject.cs (2)
11internal ToolStripItemDataObject(List<ToolStripItem> dragComponents, ToolStripItem primarySelection, ToolStrip owner) : base() 20internal ToolStrip Owner { get; }
System\Windows\Forms\Design\ToolStripItemDesigner.cs (18)
159ToolStrip parent = ToolStripItem.GetCurrentParent(); 175ToolStrip strip = ToolStripItem.Owner; 329ToolStrip immediateParent = ImmediateParent as ToolStrip; 509internal virtual ToolStrip GetMainToolStrip() => ToolStripItem.Owner; 584ToolStrip parent = ToolStripItem.GetCurrentParent(); 724ToolStrip parent = (ToolStrip)ImmediateParent; 948ToolStrip tool = GetMainToolStrip(); 951ToolStrip owner = ImmediateParent as ToolStrip; 1065ToolStrip parent = (ToolStrip)ImmediateParent; 1068parent = ParentComponent as ToolStrip; 1120ToolStrip parent = (ToolStrip)ImmediateParent; 1217ToolStrip parent = ImmediateParent as ToolStrip;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (23)
176ToolStrip owner = curDesignerNode.GetCurrentParent(); 299private static ToolStripItem GetNextItem(ToolStrip parent, ToolStripItem startItem, ArrowDirection direction) 459if (comp is ToolStrip) 606ToolStrip parent = null; 682ToolStrip parent = item.GetCurrentParent(); 727ToolStrip parent = item.GetCurrentParent(); 768ToolStrip parent = selectedItem.GetCurrentParent(); 782if (selectedObj is ToolStrip) 784ToolStrip parent = selectedObj as ToolStrip; 1097ToolStrip tool = primarySelection as ToolStrip; 1125ToolStrip tool = primarySelection as ToolStrip; 1173else if (selectionService.PrimarySelection is ToolStrip) 1275ToolStrip mainTool = owner.GetCurrentParent(); 1426if (item.Owner is ToolStrip owner) 1728ToolStrip owner = toolStripItem.Owner; 1824if (targetSelection is null && ctl is ToolStrip wb) 1858ToolStrip parent = item.GetCurrentParent(); 1869if (item.Owner is ToolStrip owner) 1958ToolStrip parent = item.GetCurrentParent(); 2023private void SelectItems(ToolStrip parent)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
39ToolStrip? parent = item.GetCurrentParent();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (7)
233ToolStrip mainStrip = GetMainToolStrip(); 1409internal override ToolStrip GetMainToolStrip() 1558ToolStrip main = GetMainToolStrip(); 1804ToolStrip mainStrip = GetMainToolStrip(); 1852ToolStrip mainStrip = GetMainToolStrip(); 2062ToolStrip mainStrip = GetMainToolStrip(); 2111ToolStrip mainStrip = GetMainToolStrip();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (4)
147=> control is ToolStrip; 174if (!typeof(ToolStrip).IsAssignableFrom(toolType)) 307if (typeof(ToolStrip).IsAssignableFrom(toolType)) 366if (e.Control is not ToolStrip)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
307public ToolStrip EditorToolStrip 403if (_component is ToolStrip && SelectionService is not null) 437ToolStrip parent = _controlHost.GetCurrentParent(); 688if (_component is ToolStrip strip) 1224if (sender is ToolStrip strip) 1338if (_component is ToolStrip strip) 1471if (currentItem is ToolStrip strip)
System.Windows.Forms.Design.Tests (7)
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
15private readonly ToolStrip _toolStrip;
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (2)
10private readonly ToolStrip _toolStrip; 24ToolStrip instance = _descriptor.TestAccessor().Dynamic._instance;
System\Windows\Forms\Design\ToolStripDesignerUtilsTests.cs (1)
13private readonly ToolStrip _toolStrip;
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializerTests.cs (1)
43Mock<ToolStrip> mockParent = new();
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (1)
73using ToolStrip toolStrip = new();
ToolStripDesignerTests.cs (1)
20using ToolStrip toolStrip = new();
System.Windows.Forms.Tests (688)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1446using ToolStrip toolStrip = new(); 1513using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1547using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1585using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (46)
17using ToolStrip toolStrip = new(); 19var accessibleObject = new ToolStrip.ToolStripAccessibleObject(toolStrip); 27using ToolStrip toolStrip = new() 42using ToolStrip toolStrip = new(); 53using ToolStrip toolStrip = new() 67using ToolStrip toolStrip = new() 81using ToolStrip toolStrip = new(); 109using ToolStrip toolStrip = new(); 133using ToolStrip toolStrip = CreateToolStrip(itemCount: 1, createControl: false); 144using ToolStrip toolStrip = CreateToolStrip(); 153using ToolStrip toolStrip = CreateToolStrip(); 163using ToolStrip toolStrip = new(); 225using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 237using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 264using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 276using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 299using ToolStrip toolStrip = CreateToolStrip(ToolStripGripStyle.Hidden, layout, dock, size, canOverflow: true, itemCount: 1); 322using ToolStrip toolStrip = CreateToolStrip(ToolStripGripStyle.Hidden, layout, dock, size, canOverflow: false, itemCount: 3); 343using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock: null, size, canOverflow: false, itemCount: 3); 355using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 371using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 387using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 403using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 419using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 437using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 455using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 472using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 534using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 546using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 557using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 569using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 585using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 601using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 618using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 634using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 650using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 672using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 694using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 711using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 742using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: true, itemCount: 3); 781using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 820using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 2); 856using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 881using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 939private ToolStrip CreateToolStrip( 949ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
13using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (1)
94using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
71using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
22using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
76using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (4)
28using ToolStrip toolStrip = new(); 57using ToolStrip toolStrip = new(); 103using ToolStrip toolStrip = new(); 192using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (8)
116using ToolStrip toolStrip = new(); 205using ToolStrip toolStrip = new(); 219using ToolStrip toolStrip = new(); 231using ToolStrip toolStrip = new(); 244using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 269using ToolStrip toolStrip = new() { GripStyle = ToolStripGripStyle.Hidden }; 285using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 312using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (6)
127using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 140using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 157using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 170using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 198private static ToolStrip CreateToolStripWithOverflow(int itemCount) 200ToolStrip toolStrip = new()
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
16using ToolStrip toolStrip = new(); 27using ToolStrip toolStrip = new(); 40using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new(); 84using ToolStrip toolStrip = new() { AutoSize = false, Size = new(30, 30) }; 109using ToolStrip toolStrip = new() { AutoSize = false, Size = new(60, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
104using ToolStrip toolStrip = new(); 121using ToolStrip toolStrip = new() { Size = new Drawing.Size(500, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
28using ToolStrip toolStrip = new(); 90using ToolStrip toolStrip = new(); 134using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
55using ToolStrip toolStrip = new(); 71using ToolStrip toolStrip = new();
System\Windows\Forms\ControlTests.cs (6)
928using ToolStrip toolStrip1 = new() { TabStop = true, }; 929using ToolStrip toolStrip2 = new() { TabStop = true, }; 956form.Controls.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 }); 985using ToolStrip toolStrip1 = new() { TabStop = true }; 986using ToolStrip toolStrip2 = new() { TabStop = true }; 1013form.Controls.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 });
System\Windows\Forms\FlowLayoutSettingsTests.cs (10)
19using ToolStrip control = new() 49using ToolStrip control = new() 62using ToolStrip control = new() 97using ToolStrip control = new() 108using ToolStrip control = new() 119using ToolStrip control = new() 131using ToolStrip control = new() 171using ToolStrip control = new() 234using ToolStrip control = new() 246using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1726using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (5)
164using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 174using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 260using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 271using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 300using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\MenuStripTests.cs (5)
356using ToolStrip control = new() 415ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 430ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\PropertyGridTests.cs (10)
293Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 299Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 324Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 333Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 3102Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3110Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3118Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible); 3148Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3159Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3170Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible);
System\Windows\Forms\StatusStripTests.cs (2)
551PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)]; 579PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (8)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 25using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 37using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 49using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 63using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 73using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 88using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 101using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (8)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 25using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 37using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 49using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 63using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 73using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 88using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 101using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (23)
15using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 28using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 40using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 52using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 62using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 83using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 97using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 106using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 115using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 126using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 140using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 156using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 167using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 177using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 189using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 204using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 216using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 225using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 240using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 258using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 272using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 286using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (4)
19Type type = typeof(ToolStrip) 29using ToolStrip toolStrip = new(); 45using ToolStrip toolStrip = new(); 77using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripButtonTests.cs (12)
665using ToolStrip owner = new(); 693using ToolStrip owner = new(); 738using ToolStrip parent = new(); 766using ToolStrip parent = new(); 884using ToolStrip owner = new(); 905using ToolStrip owner = new(); 1271using ToolStrip owner = new() 1362using ToolStrip owner = new() 1461using ToolStrip parent = new() 1505using ToolStrip owner = new(); 1543using ToolStrip parent = new(); 1740public new ToolStrip Parent
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
17using ToolStrip toolStrip = new(); 43using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new(); 95using ToolStrip toolStrip = new(); 121using ToolStrip toolStrip = new(); 148using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1329using ToolStrip control = new()
System\Windows\Forms\ToolStripControlHostTests.cs (23)
1386using ToolStrip parent = new(); 1387using ToolStrip otherParent = new(); 1453using ToolStrip owner = new(); 1454using ToolStrip parent = new(); 1455using ToolStrip otherParent = new(); 1531using ToolStrip parent = new(); 3057public void ToolStripControlHost_OnParentChanged_Invoke_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3075public void ToolStripControlHost_OnParentChanged_InvokeWithOwner_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3077using ToolStrip owner = new(); 3099using ToolStrip parent = new(); 3100using ToolStrip otherParent = new(); 3168using ToolStrip parent = new(); 3169using ToolStrip otherParent = new(); 3244public void ToolStripControlHost_OnParentChanged_InvokeDisposed_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3264public void ToolStripControlHost_OnParentChanged_InvokeDisposedWithOwner_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3266using ToolStrip owner = new(); 4659public new ToolStrip Parent 4693public new void OnParentChanged(ToolStrip oldParent, ToolStrip newParent) => base.OnParentChanged(oldParent, newParent);
System\Windows\Forms\ToolStripCustomIComparerTests.cs (8)
13[InlineData(null, typeof(ToolStrip), -1)] 14[InlineData(typeof(ToolStrip), null, 1)] 15[InlineData(typeof(ToolStrip), typeof(ToolStrip), 0)] 16[InlineData(typeof(ToolStrip), typeof(ToolStripDropDown), 1)] 17[InlineData(typeof(ToolStripDropDown), typeof(ToolStrip), -1)] 22int result = _comparer.Compare((ToolStrip)obj1, (ToolStrip)obj2);
System\Windows\Forms\ToolStripDropDownItemTests.cs (3)
408using ToolStrip owner = new() 428using ToolStrip parent = new() 529public new ToolStrip Parent
System\Windows\Forms\ToolStripDropDownTests.cs (6)
1433PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 1449PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 1491using ToolStrip control = new() 1512using ToolStrip control = new()
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
24public void ToolStripGripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 47public void Ctor_Graphics_ToolStrip(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\ToolStripItemCollectionTests.cs (13)
131using ToolStrip toolStrip = new(); 157using ToolStrip toolStrip = new(); 169using ToolStrip toolStrip = new(); 257using ToolStrip toolStrip = new(); 270using ToolStrip toolStrip = new(); 283using ToolStrip toolStrip = new(); 313using ToolStrip toolStrip1 = new(); 314using ToolStrip toolStrip2 = new(); 329using ToolStrip toolStrip = new(); 343using ToolStrip toolStrip1 = new(); 344using ToolStrip toolStrip2 = new(); 360using ToolStrip toolStrip = new(); 373using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
37ToolStrip toolStrip = new(); 45public void Ctor_Graphics_ToolStripItem(Graphics g, ToolStripItem item, ToolStrip expectedToolStrip)
System\Windows\Forms\ToolStripItemTests.cs (279)
395using ToolStrip toolStrip = new(); 406using ToolStrip parent = new(); 431using ToolStrip parent = new(); 483using ToolStrip owner = new(); 515using ToolStrip owner = new(); 587using ToolStrip owner = new(); 614using ToolStrip owner = new(); 658using ToolStrip parent = new(); 685using ToolStrip parent = new(); 729using ToolStrip parent = new() 752using ToolStrip parent = new(); 810using ToolStrip owner = new(); 842using ToolStrip parent = new(); 894using ToolStrip owner = new(); 940using ToolStrip owner = new(); 1001using ToolStrip parent = new(); 1039using ToolStrip parent = new(); 1215using ToolStrip owner = new(); 1258using ToolStrip owner = new(); 1304using ToolStrip owner = new(); 1353using ToolStrip parent = new(); 1396using ToolStrip parent = new(); 1430using ToolStrip parent = new(); 1548using ToolStrip owner = new() 1562using ToolStrip parent = new() 1592using ToolStrip owner = new(); 1612using ToolStrip owner = new(); 1645using ToolStrip parent = new(); 1671using ToolStrip parent = new(); 1794using ToolStrip owner = new(); 1814using ToolStrip owner = new(); 1847using ToolStrip parent = new(); 1875using ToolStrip parent = new(); 1923using ToolStrip owner = new(); 1943using ToolStrip owner = new(); 1976using ToolStrip parent = new(); 2000using ToolStrip parent = new(); 2060using ToolStrip owner = new(); 2071using ToolStrip parent = new(); 2135using ToolStrip owner = new(); 2176using ToolStrip owner = new(); 2228using ToolStrip parent = new(); 2252using ToolStrip parent = new(); 2379using ToolStrip owner = new(); 2412using ToolStrip parent = new(); 2471using ToolStrip owner = new() 2493using ToolStrip parent = new() 2619using ToolStrip owner = new(); 2646using ToolStrip owner = new(); 2683using ToolStrip owner = new(); 2711using ToolStrip owner = new(); 2754using ToolStrip parent = new(); 2781using ToolStrip parent = new(); 2818using ToolStrip parent = new(); 2858using ToolStrip parent = new(); 2935using ToolStrip parent = new() 2953using ToolStrip owner = new() 3007using ToolStrip owner = new(); 3048using ToolStrip owner = new(); 3101using ToolStrip parent = new(); 3135using ToolStrip parent = new(); 3238using ToolStrip owner = new() 3252using ToolStrip parent = new() 3282using ToolStrip owner = new(); 3302using ToolStrip owner = new(); 3335using ToolStrip parent = new(); 3364using ToolStrip parent = new(); 3482using ToolStrip owner = new(); 3518using ToolStrip owner = new(); 3570using ToolStrip parent = new(); 3616using ToolStrip parent = new(); 3678using ToolStrip owner = new() 3698using ToolStrip owner = new() 3719using ToolStrip owner = new() 3744using ToolStrip parent = new() 3766using ToolStrip parent = new() 3900using ToolStrip owner = new(); 3945using ToolStrip owner = new(); 4003using ToolStrip parent = new(); 4038using ToolStrip parent = new(); 4106using ToolStrip owner = new() 4151using ToolStrip owner = new() 4199using ToolStrip owner = new(); 4246using ToolStrip owner = new(); 4298using ToolStrip parent = new(); 4330using ToolStrip parent = new(); 4457using ToolStrip owner = new(); 4503using ToolStrip owner = new() 4551using ToolStrip owner = new(); 4607using ToolStrip parent = new(); 4646using ToolStrip parent = new() 4685using ToolStrip parent = new(); 4788using ToolStrip owner = new() 4866using ToolStrip owner = new() 4957using ToolStrip owner = new(); 5005using ToolStrip owner = new() 5051using ToolStrip owner = new(); 5105using ToolStrip parent = new(); 5142using ToolStrip parent = new() 5179using ToolStrip parent = new(); 5287using ToolStrip owner = new() 5379using ToolStrip owner = new() 5426using ToolStrip owner = new(); 5466using ToolStrip owner = new(); 5518using ToolStrip parent = new(); 5550using ToolStrip parent = new(); 5649using ToolStrip owner = new(); 5682using ToolStrip owner = new(); 5716using ToolStrip parent = new(); 5749using ToolStrip parent = new(); 5814using ToolStrip owner = new(); 5836using ToolStrip owner = new() 5852using ToolStrip parent = new(); 5874using ToolStrip parent = new() 5918using ToolStrip owner = new(); 5957using ToolStrip owner = new(); 6009using ToolStrip parent = new(); 6048using ToolStrip parent = new(); 6250using ToolStrip owner = new(); 6295using ToolStrip owner = new(); 6351using ToolStrip parent = new(); 6387using ToolStrip parent = new(); 6443using ToolStrip owner = new(); 6444using ToolStrip otherOwner = new(); 6492using ToolStrip owner = new(); 6493using ToolStrip otherOwner = new(); 6551using ToolStrip owner = new() 6582using ToolStrip owner = new(); 6583using ToolStrip otherOwner = new(); 6632using ToolStrip owner = new(); 6664using ToolStrip parent = new(); 6747using ToolStrip owner = new(); 6786using ToolStrip owner = new(); 6838using ToolStrip parent = new(); 6870using ToolStrip parent = new(); 6965using ToolStrip parent = new(); 6966using ToolStrip otherParent = new(); 7021using ToolStrip parent = new(); 7022using ToolStrip otherParent = new(); 7102using ToolStrip owner = new() 7119using ToolStrip parent = new() 7133using ToolStrip owner = new() 7137using ToolStrip parent = new() 7181using ToolStrip owner = new() 7223using ToolStrip owner = new() 7291using ToolStrip parent = new() 7326using ToolStrip parent = new() 7492using ToolStrip owner = new(); 7530using ToolStrip owner = new(); 7591using ToolStrip parent = new(); 7630using ToolStrip parent = new(); 7710using ToolStrip owner = new(); 7748using ToolStrip parent = new(); 7859using ToolStrip owner = new(); 7895using ToolStrip owner = new(); 7954using ToolStrip parent = new(); 7997using ToolStrip parent = new(); 8085using ToolStrip owner = new(); 8127using ToolStrip owner = new(); 8179using ToolStrip parent = new(); 8212using ToolStrip parent = new(); 8315using ToolStrip owner = new(); 8362using ToolStrip owner = new(); 8414using ToolStrip parent = new(); 8446using ToolStrip parent = new(); 8504using ToolStrip owner = new() 8522using ToolStrip parent = new() 8536using ToolStrip owner = new() 8540using ToolStrip parent = new() 8587using ToolStrip owner = new() 8629using ToolStrip owner = new() 8684using ToolStrip parent = new() 8719using ToolStrip parent = new() 8842using ToolStrip owner = new(); 8885using ToolStrip owner = new(); 8937using ToolStrip parent = new(); 8969using ToolStrip parent = new(); 9133using ToolStrip owner = new() 9155using ToolStrip parent = new() 9265using ToolStrip owner = new(); 9308using ToolStrip owner = new(); 9354using ToolStrip owner = new(); 9403using ToolStrip parent = new(); 9446using ToolStrip parent = new(); 9480using ToolStrip parent = new(); 9649using ToolStrip owner = new(); 9685using ToolStrip owner = new(); 9737using ToolStrip parent = new(); 9783using ToolStrip parent = new(); 9913using ToolStrip owner = new(); 9955using ToolStrip parent = new(); 10066using ToolStrip owner = new(); 10110using ToolStrip parent = new(); 10175using ToolStrip parent = new(); 10189using ToolStrip parent = new() 10206using ToolStrip owner = new(); 10220using ToolStrip owner = new() 10279using ToolStrip parent = new(); 10290using ToolStrip owner = new(); 10322using ToolStrip owner = new(); 10337using ToolStrip parent = new(); 10382using ToolStrip owner = new(); 10398using ToolStrip owner = new(); 10428using ToolStrip parent = new(); 10444using ToolStrip parent = new(); 10492using ToolStrip owner = new(); 10509using ToolStrip owner = new(); 10540using ToolStrip parent = new(); 10557using ToolStrip parent = new(); 10636using ToolStrip owner = new(); 10666using ToolStrip owner = new(); 10710using ToolStrip parent = new(); 10740using ToolStrip parent = new(); 10790using ToolStrip owner = new(); 10814using ToolStrip owner = new(); 10848using ToolStrip parent = new(); 10879using ToolStrip parent = new(); 11169using ToolStrip owner = new(); 11202using ToolStrip owner = new(); 11248using ToolStrip parent = new(); 11281using ToolStrip parent = new(); 11363using ToolStrip owner = new(); 11401using ToolStrip owner = new(); 11452using ToolStrip parent = new(); 11483using ToolStrip parent = new(); 11551using ToolStrip owner = new(); 11581using ToolStrip owner = new(); 11625using ToolStrip parent = new(); 11655using ToolStrip parent = new(); 11844using ToolStrip owner = new() 11876using ToolStrip parent = new() 11944using ToolStrip owner = new() 11976using ToolStrip owner = new() 12009using ToolStrip parent = new() 12041using ToolStrip parent = new() 12208using ToolStrip owner = new() 12273using ToolStrip owner = new(); 12319using ToolStrip owner = new(); 12384using ToolStrip parent = new(); 12421using ToolStrip parent = new(); 12541public void ToolStripItem_OnParentChanged_Invoke_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 12741using ToolStrip owner = new(); 12791using ToolStrip owner = new(); 12854using ToolStrip parent = new(); 12897using ToolStrip parent = new(); 12977using ToolStrip owner = new(); 13027using ToolStrip owner = new(); 13090using ToolStrip parent = new(); 13133using ToolStrip parent = new(); 13262using ToolStrip owner = new(); 13306using ToolStrip owner = new(); 13372using ToolStrip owner = new(); 13438using ToolStrip owner = new(); 13498using ToolStrip parent = new(); 13542using ToolStrip parent = new(); 13673using ToolStrip control = new(); 13742using ToolStrip owner = new(); 13794using ToolStrip owner = new(); 13862using ToolStrip parent = new(); 13899using ToolStrip parent = new(); 13989using ToolStrip parent = new(); 14358using ToolStrip owner = new(); 14377using ToolStrip owner = new(); 14447using ToolStrip parent = new(); 14466using ToolStrip parent = new(); 14580using ToolStrip owner = new(); 14627using ToolStrip owner = new(); 14701using ToolStrip parent = new(); 14755using ToolStrip parent = new(); 14927using ToolStrip owner = new(); 14970using ToolStrip owner = new(); 15016using ToolStrip owner = new(); 15065using ToolStrip parent = new(); 15108using ToolStrip parent = new(); 15142using ToolStrip parent = new(); 15517public new ToolStrip Parent 15585public new void OnParentChanged(ToolStrip oldParent, ToolStrip newParent) => base.OnParentChanged(oldParent, newParent);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
445public new ToolStrip Parent
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
18using ToolStrip toolStrip1 = new(); 19using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripPanelTests.cs (2)
348using ToolStrip toolStrip1 = new(); 349using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripRendererTests.cs (4)
485public void ToolStripRenderer_DrawStatusStripSizingGrip_Invoke_CallsRenderStatusStripSizingGrip(ToolStrip toolStrip) 674public void ToolStripRenderer_Initialize_Invoke_Nop(ToolStrip toolStrip) 918public void ToolStripRenderer_OnRenderStatusStripSizingGrip_Invoke_Nop(ToolStrip toolStrip) 1025public new void Initialize(ToolStrip toolStrip) => base.Initialize(toolStrip);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (5)
24public void ToolStripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 39public void ToolStripRenderEventArgs_Ctor_Graphics_ToolStrip(ToolStrip toolStrip, Rectangle expectedAffectedBounds, Color expectedBackColor) 63public void ToolStripRenderEventArgs_Ctor_Graphics_ToolStrip_Rectangle_Color(ToolStrip toolStrip, Rectangle affectedBounds, Color backColor, Color expectedBackColor) 84ToolStrip owner = new(); 92public void ToolStripRenderEventArgs_ConnectedArea_Get_ReturnsEmpty(ToolStrip toolStrip)
System\Windows\Forms\ToolStripSeparatorTests.cs (16)
802using ToolStrip owner = new() 850using ToolStrip parent = new() 943using ToolStrip owner = new(); 974using ToolStrip owner = new(); 1018using ToolStrip parent = new(); 1049using ToolStrip parent = new(); 1132using ToolStrip owner = new() 1168using ToolStrip parent = new() 1219using ToolStrip owner = new() 1224using ToolStrip parent = new() 1290using ToolStrip owner = new() 1343using ToolStrip owner = new(); 1344using ToolStrip parent = new(); 1400using ToolStrip owner = new(); 1523using ToolStrip parent = new(); 1651public new ToolStrip Parent
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
15using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
10private readonly ToolStrip _toolStrip;
System\Windows\Forms\ToolStripTests.cs (131)
361using ToolStrip control = new() 386using ToolStrip control = new(); 415using ToolStrip control = new(); 452using ToolStrip control = new(); 499using ToolStrip control = new(); 531using ToolStrip control = new(); 575using ToolStrip control = new() 590using ToolStrip control = new() 611using ToolStrip control = new(); 640using ToolStrip control = new(); 676using ToolStrip control = new() 691using ToolStrip control = new() 713using ToolStrip control = new(); 776using ToolStrip control = new(); 804using ToolStrip control = new(); 821using ToolStrip control = new(); 848using ToolStrip control = new(); 870using ToolStrip control = new() 887using ToolStrip control = new(); 915using ToolStrip control = new() 973using ToolStrip control = new() 1024using ToolStrip control = new() 1069using ToolStrip control = new() 1090using ToolStrip control = new() 1105using ToolStrip control = new() 1122using ToolStrip control = new() 1139using ToolStrip control = new() 1157using ToolStrip control = new(); 1200using ToolStrip control = new(); 1227using ToolStrip control = new(); 1275using ToolStrip control = new() 1296using ToolStrip control = new() 1335using ToolStrip control = new() 1351using ToolStrip control = new(); 1393using ToolStrip control = new(); 1407using ToolStrip control = new() 1428using ToolStrip control = new() 1462using ToolStrip control = new(); 1506using ToolStrip control = new(); 1571using ToolStrip control = new(); 1629using ToolStrip toolStrip1 = new(); 1649using ToolStrip toolStrip1 = new(); 1750using ToolStrip control = new() 1776using ToolStrip control = new() 1880using ToolStrip control = new() 1911using ToolStrip control = new() 2016using ToolStrip control = new() 2161using ToolStrip control = new() 2178using ToolStrip control = new(); 2206PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 2207using ToolStrip control = new(); 2222PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 2223using ToolStrip control = new(); 2243using ToolStrip control = new(); 2374using ToolStrip control = new() 2458using ToolStrip control = new() 2564using ToolStrip control = new() 2629using ToolStrip control = new() 2668using ToolStrip control = new(); 2676using ToolStrip control = new() 2692using ToolStrip control = new(); 2728using ToolStrip control = new(); 2746using ToolStrip control = new(); 2766using ToolStrip control = new(); 2796using ToolStrip control = new(); 2826using ToolStrip control = new(); 2865using ToolStrip control = new(); 2894using ToolStrip control = new() 2922using ToolStrip control = new() 2986using ToolStrip control = new() 3089using ToolStrip control = new() 3150using ToolStrip control = new() 3189using ToolStrip control = new(); 3232using ToolStrip control = new() 3255using ToolStrip control = new(); 3299using ToolStrip control = new(); 3342using ToolStrip control = new() 3377PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)]; 3378using ToolStrip control = new(); 3405PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)]; 3406using ToolStrip control = new(); 3434using ToolStrip control = new(); 3441using ToolStrip control = new(); 3451using ToolStrip control = new(); 3479using ToolStrip control = new(); 3509using ToolStrip control = new(); 3530using ToolStrip control = new(); 3566using ToolStrip control = new(); 3586using ToolStrip control = new() 3609using ToolStrip control = new(); 3633using ToolStrip control = new(); 3658using ToolStrip control = new() 3680using ToolStrip control = new(); 3781using ToolStrip control = new() 3823using ToolStrip control = new(); 3852using ToolStrip control = new(); 3894using ToolStrip control = new(); 3931using ToolStrip control = new(); 3974using ToolStrip control = new(); 4033using ToolStrip control = new(); 4095using ToolStrip control = new(); 4103using ToolStrip control = new() 4171using ToolStrip control = new() 4210ToolStrip.ToolStripAccessibleObject instance = Assert.IsType<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 4225ToolStrip.ToolStripAccessibleObject instance = Assert.IsType<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 4359using ToolStrip control = new(); 4410using ToolStrip control = new() 4464using ToolStrip control = new(); 4780using ToolStrip toolStrip = new(); 4789using ToolStrip toolStrip = new(); 4812using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4833using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4858using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4879using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 7044using ToolStrip control = new(); 7114using ToolStrip otherControl = new(); 7137using ToolStrip otherControl = new(); 7293using ToolStrip toolStrip = new() { LayoutStyle = toolStripLayoutStyle, TabStop = tabStop, GripStyle = gripStyle }; 7348using ToolStrip toolStrip = new(); 7361using ToolStrip toolStrip = new(); 7370using ToolStrip toolStrip = new(); 7382using ToolStrip toolStrip = new(); 7394using var toolStrip = new ToolStrip() { AutoScrollMargin = new Size(10, 20) }; 7402using ToolStrip toolStrip = new(); 7424using ToolStrip toolStrip = new() { GripMargin = new Padding(1) };
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
17using ToolStrip toolStrip = new ToolStrip
TrackBarTests.cs (1)
401using ToolStrip control = new()
System.Windows.Forms.UI.IntegrationTests (3)
Dpi\ToolStripItemTests.Dpi.cs (1)
37using ToolStrip toolStrip = new();
DragDropTests.cs (1)
957public ToolStrip ToolStrip = new();
ToolStripTests.cs (1)
37using ToolStrip toolStrip = new()
TestPassApp (6)
Menu_Toolbars_controls.Designer.cs (1)
650private ToolStrip toolStrip1;
PrintingControls.cs (2)
61((ToolStripButton)((ToolStrip)printPreviewDialog1.Controls[1]).Items[0]).Enabled = false;// disable the direct print from printpreview.as when we click that Print button PrintPage event fires again. 62foreach (ToolStripItem item in ((ToolStrip)printPreviewDialog1.Controls[1]).Items)
RemainingControls.cs (2)
13foreach (ToolStripItem item in ((ToolStrip)propertyGrid1.Controls[3]).Items) 23foreach (ToolStripItem item in ((ToolStrip)propertyGrid2.Controls[3]).Items)
ToolStripContainer.Designer.cs (1)
618private System.Windows.Forms.ToolStrip toolStrip1;
WinFormsControlsTest (14)
Dialogs.cs (4)
55ToolStrip toolbar = GetToolbar(); 68private ToolStrip GetToolbar() 72ToolStrip? toolStrip = control as ToolStrip;
DragDrop.cs (1)
439ToolStrip toolStrip = new()
MessageBoxes.cs (4)
41ToolStrip toolbar = GetToolbar(); 48private ToolStrip GetToolbar() 52ToolStrip? toolStrip = control as ToolStrip;
ToolStripSeparatorPreferredSize.cs (1)
99private ToolStrip _toolStrip1;
ToolStripTests.Designer.cs (4)
463private System.Windows.Forms.ToolStrip toolStrip1; 473private System.Windows.Forms.ToolStrip toolStrip2; 474private System.Windows.Forms.ToolStrip toolStrip3; 475private System.Windows.Forms.ToolStrip toolStrip4;