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)
15442private class SubToolStrip : ToolStrip 15610private class ToolStripWithDisconnectCount : ToolStrip
System\Windows\Forms\ToolStripTests.cs (3)
2324private class CustomDefaultDockToolStrip : ToolStrip 3575private class CustomDefaultShowItemToolTipsToolStrip : ToolStrip 7506private class SubToolStrip : ToolStrip
610 instantiations of ToolStrip
Accessibility_Core_App (2)
Menu_Toolbars_controls.Designer.cs (1)
91toolStrip1 = new ToolStrip();
ToolStripContainer.Designer.cs (1)
34this.toolStrip1 = new System.Windows.Forms.ToolStrip();
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
759_toolStrip1 = new ToolStrip();
System.Windows.Forms.Design.Tests (1)
ToolStripDesignerTests.cs (1)
18using ToolStrip toolStrip = new();
System.Windows.Forms.Tests (596)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1426using ToolStrip toolStrip = new(); 1493using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1527using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1565using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (9)
15using ToolStrip toolStrip = new(); 25using ToolStrip toolStrip = new() 40using ToolStrip toolStrip = new(); 51using ToolStrip toolStrip = new() 65using ToolStrip toolStrip = new() 79using ToolStrip toolStrip = new(); 107using ToolStrip toolStrip = new(); 161using ToolStrip toolStrip = new(); 947ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
11using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (1)
92using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
69using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
20using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
74using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (4)
26using ToolStrip toolStrip = new(); 55using ToolStrip toolStrip = new(); 101using ToolStrip toolStrip = new(); 190using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (8)
114using ToolStrip toolStrip = new(); 203using ToolStrip toolStrip = new(); 217using ToolStrip toolStrip = new(); 229using ToolStrip toolStrip = new(); 242using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 267using ToolStrip toolStrip = new() { GripStyle = ToolStripGripStyle.Hidden }; 283using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 310using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
198ToolStrip toolStrip = new()
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
14using ToolStrip toolStrip = new(); 25using ToolStrip toolStrip = new(); 38using ToolStrip toolStrip = new(); 67using ToolStrip toolStrip = new(); 82using ToolStrip toolStrip = new() { AutoSize = false, Size = new(30, 30) }; 107using ToolStrip toolStrip = new() { AutoSize = false, Size = new(60, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
102using ToolStrip toolStrip = new(); 119using ToolStrip toolStrip = new() { Size = new Drawing.Size(500, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
26using ToolStrip toolStrip = new(); 88using ToolStrip toolStrip = new(); 132using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
53using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
200{ new ToolStrip(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\ControlTests.cs (4)
926using ToolStrip toolStrip1 = new() { TabStop = true, }; 927using ToolStrip toolStrip2 = new() { TabStop = true, }; 983using ToolStrip toolStrip1 = new() { TabStop = true }; 984using ToolStrip toolStrip2 = new() { TabStop = true };
System\Windows\Forms\FlowLayoutSettingsTests.cs (10)
17using ToolStrip control = new() 47using ToolStrip control = new() 60using ToolStrip control = new() 95using ToolStrip control = new() 106using ToolStrip control = new() 117using ToolStrip control = new() 129using ToolStrip control = new() 169using ToolStrip control = new() 232using ToolStrip control = new() 244using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1724using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (5)
162using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 172using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 258using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 269using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 298using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\MenuStripTests.cs (1)
354using ToolStrip control = new()
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (8)
11using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 23using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 35using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 47using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 61using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 86using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 99using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (8)
11using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 23using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 35using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 47using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 61using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 86using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 99using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (23)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 26using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 38using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 50using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 60using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 69using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 81using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 95using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 104using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 113using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 124using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 138using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 154using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 165using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 175using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 187using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 202using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 214using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 223using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 238using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 256using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 270using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 284using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
27using ToolStrip toolStrip = new(); 43using ToolStrip toolStrip = new(); 75using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripButtonTests.cs (11)
663using ToolStrip owner = new(); 691using ToolStrip owner = new(); 736using ToolStrip parent = new(); 764using ToolStrip parent = new(); 882using ToolStrip owner = new(); 903using ToolStrip owner = new(); 1269using ToolStrip owner = new() 1360using ToolStrip owner = new() 1459using ToolStrip parent = new() 1503using ToolStrip owner = new(); 1541using ToolStrip parent = new();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
15using ToolStrip toolStrip = new(); 41using ToolStrip toolStrip = new(); 67using ToolStrip toolStrip = new(); 93using ToolStrip toolStrip = new(); 119using ToolStrip toolStrip = new(); 146using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1327using ToolStrip control = new()
System\Windows\Forms\ToolStripControlHostTests.cs (16)
1384using ToolStrip parent = new(); 1385using ToolStrip otherParent = new(); 1451using ToolStrip owner = new(); 1452using ToolStrip parent = new(); 1453using ToolStrip otherParent = new(); 1529using ToolStrip parent = new(); 3044yield return new object[] { enabled, visible, image, allowDrop, null, new ToolStrip() }; 3045yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), null }; 3046yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), new ToolStrip() }; 3075using ToolStrip owner = new(); 3097using ToolStrip parent = new(); 3098using ToolStrip otherParent = new(); 3166using ToolStrip parent = new(); 3167using ToolStrip otherParent = new(); 3264using ToolStrip owner = new();
System\Windows\Forms\ToolStripDropDownItemTests.cs (2)
406using ToolStrip owner = new() 426using ToolStrip parent = new()
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1489using ToolStrip control = new() 1510using ToolStrip control = new()
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (3)
16yield return new object[] { null, new ToolStrip() }; 32yield return new object[] { graphics, new ToolStrip() }; 35graphics, new ToolStrip
System\Windows\Forms\ToolStripItemCollectionTests.cs (12)
134using ToolStrip toolStrip = new(); 146using ToolStrip toolStrip = new(); 234using ToolStrip toolStrip = new(); 247using ToolStrip toolStrip = new(); 260using ToolStrip toolStrip = new(); 290using ToolStrip toolStrip1 = new(); 291using ToolStrip toolStrip2 = new(); 306using ToolStrip toolStrip = new(); 320using ToolStrip toolStrip1 = new(); 321using ToolStrip toolStrip2 = new(); 337using ToolStrip toolStrip = new(); 350using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
35ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemTests.cs (278)
393using ToolStrip toolStrip = new(); 404using ToolStrip parent = new(); 429using ToolStrip parent = new(); 481using ToolStrip owner = new(); 513using ToolStrip owner = new(); 585using ToolStrip owner = new(); 612using ToolStrip owner = new(); 656using ToolStrip parent = new(); 683using ToolStrip parent = new(); 727using ToolStrip parent = new() 750using ToolStrip parent = new(); 808using ToolStrip owner = new(); 840using ToolStrip parent = new(); 892using ToolStrip owner = new(); 938using ToolStrip owner = new(); 999using ToolStrip parent = new(); 1037using ToolStrip parent = new(); 1213using ToolStrip owner = new(); 1256using ToolStrip owner = new(); 1302using ToolStrip owner = new(); 1351using ToolStrip parent = new(); 1394using ToolStrip parent = new(); 1428using ToolStrip parent = new(); 1546using ToolStrip owner = new() 1560using ToolStrip parent = new() 1590using ToolStrip owner = new(); 1610using ToolStrip owner = new(); 1643using ToolStrip parent = new(); 1669using ToolStrip parent = new(); 1792using ToolStrip owner = new(); 1812using ToolStrip owner = new(); 1845using ToolStrip parent = new(); 1873using ToolStrip parent = new(); 1921using ToolStrip owner = new(); 1941using ToolStrip owner = new(); 1974using ToolStrip parent = new(); 1998using ToolStrip parent = new(); 2058using ToolStrip owner = new(); 2069using ToolStrip parent = new(); 2133using ToolStrip owner = new(); 2174using ToolStrip owner = new(); 2226using ToolStrip parent = new(); 2250using ToolStrip parent = new(); 2377using ToolStrip owner = new(); 2410using ToolStrip parent = new(); 2469using ToolStrip owner = new() 2491using ToolStrip parent = new() 2617using ToolStrip owner = new(); 2644using ToolStrip owner = new(); 2681using ToolStrip owner = new(); 2709using ToolStrip owner = new(); 2752using ToolStrip parent = new(); 2779using ToolStrip parent = new(); 2816using ToolStrip parent = new(); 2856using ToolStrip parent = new(); 2933using ToolStrip parent = new() 2951using ToolStrip owner = new() 3005using ToolStrip owner = new(); 3046using ToolStrip owner = new(); 3099using ToolStrip parent = new(); 3133using ToolStrip parent = new(); 3236using ToolStrip owner = new() 3250using ToolStrip parent = new() 3280using ToolStrip owner = new(); 3300using ToolStrip owner = new(); 3333using ToolStrip parent = new(); 3362using ToolStrip parent = new(); 3480using ToolStrip owner = new(); 3516using ToolStrip owner = new(); 3568using ToolStrip parent = new(); 3614using ToolStrip parent = new(); 3676using ToolStrip owner = new() 3696using ToolStrip owner = new() 3717using ToolStrip owner = new() 3742using ToolStrip parent = new() 3764using ToolStrip parent = new() 3898using ToolStrip owner = new(); 3943using ToolStrip owner = new(); 4001using ToolStrip parent = new(); 4036using ToolStrip parent = new(); 4104using ToolStrip owner = new() 4149using ToolStrip owner = new() 4197using ToolStrip owner = new(); 4244using ToolStrip owner = new(); 4296using ToolStrip parent = new(); 4328using ToolStrip parent = new(); 4455using ToolStrip owner = new(); 4501using ToolStrip owner = new() 4549using ToolStrip owner = new(); 4605using ToolStrip parent = new(); 4644using ToolStrip parent = new() 4683using ToolStrip parent = new(); 4786using ToolStrip owner = new() 4864using ToolStrip owner = new() 4955using ToolStrip owner = new(); 5003using ToolStrip owner = new() 5049using ToolStrip owner = new(); 5103using ToolStrip parent = new(); 5140using ToolStrip parent = new() 5177using ToolStrip parent = new(); 5285using ToolStrip owner = new() 5377using ToolStrip owner = new() 5424using ToolStrip owner = new(); 5464using ToolStrip owner = new(); 5516using ToolStrip parent = new(); 5548using ToolStrip parent = new(); 5647using ToolStrip owner = new(); 5680using ToolStrip owner = new(); 5714using ToolStrip parent = new(); 5747using ToolStrip parent = new(); 5812using ToolStrip owner = new(); 5834using ToolStrip owner = new() 5850using ToolStrip parent = new(); 5872using ToolStrip parent = new() 5916using ToolStrip owner = new(); 5955using ToolStrip owner = new(); 6007using ToolStrip parent = new(); 6046using ToolStrip parent = new(); 6248using ToolStrip owner = new(); 6293using ToolStrip owner = new(); 6349using ToolStrip parent = new(); 6385using ToolStrip parent = new(); 6441using ToolStrip owner = new(); 6442using ToolStrip otherOwner = new(); 6490using ToolStrip owner = new(); 6491using ToolStrip otherOwner = new(); 6549using ToolStrip owner = new() 6580using ToolStrip owner = new(); 6581using ToolStrip otherOwner = new(); 6630using ToolStrip owner = new(); 6662using ToolStrip parent = new(); 6745using ToolStrip owner = new(); 6784using ToolStrip owner = new(); 6836using ToolStrip parent = new(); 6868using ToolStrip parent = new(); 6963using ToolStrip parent = new(); 6964using ToolStrip otherParent = new(); 7019using ToolStrip parent = new(); 7020using ToolStrip otherParent = new(); 7100using ToolStrip owner = new() 7117using ToolStrip parent = new() 7131using ToolStrip owner = new() 7135using ToolStrip parent = new() 7179using ToolStrip owner = new() 7221using ToolStrip owner = new() 7289using ToolStrip parent = new() 7324using ToolStrip parent = new() 7490using ToolStrip owner = new(); 7528using ToolStrip owner = new(); 7589using ToolStrip parent = new(); 7628using ToolStrip parent = new(); 7708using ToolStrip owner = new(); 7746using ToolStrip parent = new(); 7857using ToolStrip owner = new(); 7893using ToolStrip owner = new(); 7952using ToolStrip parent = new(); 7995using ToolStrip parent = new(); 8083using ToolStrip owner = new(); 8125using ToolStrip owner = new(); 8177using ToolStrip parent = new(); 8210using ToolStrip parent = new(); 8313using ToolStrip owner = new(); 8360using ToolStrip owner = new(); 8412using ToolStrip parent = new(); 8444using ToolStrip parent = new(); 8502using ToolStrip owner = new() 8520using ToolStrip parent = new() 8534using ToolStrip owner = new() 8538using ToolStrip parent = new() 8585using ToolStrip owner = new() 8627using ToolStrip owner = new() 8682using ToolStrip parent = new() 8717using ToolStrip parent = new() 8840using ToolStrip owner = new(); 8883using ToolStrip owner = new(); 8935using ToolStrip parent = new(); 8967using ToolStrip parent = new(); 9131using ToolStrip owner = new() 9153using ToolStrip parent = new() 9263using ToolStrip owner = new(); 9306using ToolStrip owner = new(); 9352using ToolStrip owner = new(); 9401using ToolStrip parent = new(); 9444using ToolStrip parent = new(); 9478using ToolStrip parent = new(); 9647using ToolStrip owner = new(); 9683using ToolStrip owner = new(); 9735using ToolStrip parent = new(); 9781using ToolStrip parent = new(); 9911using ToolStrip owner = new(); 9953using ToolStrip parent = new(); 10064using ToolStrip owner = new(); 10108using ToolStrip parent = new(); 10173using ToolStrip parent = new(); 10187using ToolStrip parent = new() 10204using ToolStrip owner = new(); 10218using ToolStrip owner = new() 10277using ToolStrip parent = new(); 10288using ToolStrip owner = new(); 10320using ToolStrip owner = new(); 10335using ToolStrip parent = new(); 10380using ToolStrip owner = new(); 10396using ToolStrip owner = new(); 10426using ToolStrip parent = new(); 10442using ToolStrip parent = new(); 10490using ToolStrip owner = new(); 10507using ToolStrip owner = new(); 10538using ToolStrip parent = new(); 10555using ToolStrip parent = new(); 10634using ToolStrip owner = new(); 10664using ToolStrip owner = new(); 10708using ToolStrip parent = new(); 10738using ToolStrip parent = new(); 10788using ToolStrip owner = new(); 10812using ToolStrip owner = new(); 10846using ToolStrip parent = new(); 10877using ToolStrip parent = new(); 11167using ToolStrip owner = new(); 11200using ToolStrip owner = new(); 11246using ToolStrip parent = new(); 11279using ToolStrip parent = new(); 11361using ToolStrip owner = new(); 11399using ToolStrip owner = new(); 11450using ToolStrip parent = new(); 11481using ToolStrip parent = new(); 11549using ToolStrip owner = new(); 11579using ToolStrip owner = new(); 11623using ToolStrip parent = new(); 11653using ToolStrip parent = new(); 11842using ToolStrip owner = new() 11874using ToolStrip parent = new() 11942using ToolStrip owner = new() 11974using ToolStrip owner = new() 12007using ToolStrip parent = new() 12039using ToolStrip parent = new() 12206using ToolStrip owner = new() 12271using ToolStrip owner = new(); 12317using ToolStrip owner = new(); 12382using ToolStrip parent = new(); 12419using ToolStrip parent = new(); 12528yield return new object[] { enabled, visible, image, allowDrop, null, new ToolStrip() }; 12529yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), null }; 12530yield return new object[] { enabled, visible, image, allowDrop, new ToolStrip(), new ToolStrip() }; 12739using ToolStrip owner = new(); 12789using ToolStrip owner = new(); 12852using ToolStrip parent = new(); 12895using ToolStrip parent = new(); 12975using ToolStrip owner = new(); 13025using ToolStrip owner = new(); 13088using ToolStrip parent = new(); 13131using ToolStrip parent = new(); 13260using ToolStrip owner = new(); 13304using ToolStrip owner = new(); 13370using ToolStrip owner = new(); 13436using ToolStrip owner = new(); 13496using ToolStrip parent = new(); 13540using ToolStrip parent = new(); 13671using ToolStrip control = new(); 13740using ToolStrip owner = new(); 13792using ToolStrip owner = new(); 13860using ToolStrip parent = new(); 13897using ToolStrip parent = new(); 13987using ToolStrip parent = new(); 14356using ToolStrip owner = new(); 14375using ToolStrip owner = new(); 14445using ToolStrip parent = new(); 14464using ToolStrip parent = new(); 14578using ToolStrip owner = new(); 14625using ToolStrip owner = new(); 14699using ToolStrip parent = new(); 14753using ToolStrip parent = new(); 14925using ToolStrip owner = new(); 14968using ToolStrip owner = new(); 15014using ToolStrip owner = new(); 15063using ToolStrip parent = new(); 15106using ToolStrip parent = new(); 15140using ToolStrip parent = new();
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
16using ToolStrip toolStrip1 = new(); 17using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripPanelTests.cs (2)
346using ToolStrip toolStrip1 = new(); 347using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripRendererTests.cs (4)
138yield return new object[] { new ToolStripGripRenderEventArgs(graphics, new ToolStrip()) }; 475yield return new object[] { new ToolStrip() }; 522yield return new object[] { new ToolStripRenderEventArgs(graphics, new ToolStrip()) }; 667yield return new object[] { new ToolStrip() };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (8)
16yield return new object[] { null, new ToolStrip() }; 29yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.Control }; 30yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(0, 0, 100, 25), Color.Red }; 52yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control }; 53yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Empty, Color.Red }; 56yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Blue, Color.Blue }; 76yield return new object[] { new ToolStrip() }; 82ToolStrip owner = new();
System\Windows\Forms\ToolStripSeparatorTests.cs (15)
800using ToolStrip owner = new() 848using ToolStrip parent = new() 941using ToolStrip owner = new(); 972using ToolStrip owner = new(); 1016using ToolStrip parent = new(); 1047using ToolStrip parent = new(); 1130using ToolStrip owner = new() 1166using ToolStrip parent = new() 1217using ToolStrip owner = new() 1222using ToolStrip parent = new() 1288using ToolStrip owner = new() 1341using ToolStrip owner = new(); 1342using ToolStrip parent = new(); 1398using ToolStrip owner = new(); 1521using ToolStrip parent = new();
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
13using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
16_toolStrip = new();
System\Windows\Forms\ToolStripTests.cs (121)
326Assert.Throws<ArgumentNullException>("toolStripItems", () => new ToolStrip(null)); 332Assert.Throws<ArgumentNullException>("value", () => new ToolStrip([null])); 359using ToolStrip control = new() 384using ToolStrip control = new(); 413using ToolStrip control = new(); 450using ToolStrip control = new(); 497using ToolStrip control = new(); 529using ToolStrip control = new(); 573using ToolStrip control = new() 588using ToolStrip control = new() 609using ToolStrip control = new(); 638using ToolStrip control = new(); 674using ToolStrip control = new() 689using ToolStrip control = new() 711using ToolStrip control = new(); 774using ToolStrip control = new(); 802using ToolStrip control = new(); 819using ToolStrip control = new(); 846using ToolStrip control = new(); 868using ToolStrip control = new() 885using ToolStrip control = new(); 913using ToolStrip control = new() 971using ToolStrip control = new() 1022using ToolStrip control = new() 1067using ToolStrip control = new() 1088using ToolStrip control = new() 1103using ToolStrip control = new() 1120using ToolStrip control = new() 1137using ToolStrip control = new() 1155using ToolStrip control = new(); 1198using ToolStrip control = new(); 1225using ToolStrip control = new(); 1273using ToolStrip control = new() 1294using ToolStrip control = new() 1333using ToolStrip control = new() 1349using ToolStrip control = new(); 1391using ToolStrip control = new(); 1405using ToolStrip control = new() 1426using ToolStrip control = new() 1460using ToolStrip control = new(); 1504using ToolStrip control = new(); 1569using ToolStrip control = new(); 1627using ToolStrip toolStrip1 = new(); 1647using ToolStrip toolStrip1 = new(); 1748using ToolStrip control = new() 1774using ToolStrip control = new() 1878using ToolStrip control = new() 1909using ToolStrip control = new() 2014using ToolStrip control = new() 2159using ToolStrip control = new() 2176using ToolStrip control = new(); 2205using ToolStrip control = new(); 2221using ToolStrip control = new(); 2241using ToolStrip control = new(); 2372using ToolStrip control = new() 2456using ToolStrip control = new() 2562using ToolStrip control = new() 2627using ToolStrip control = new() 2666using ToolStrip control = new(); 2674using ToolStrip control = new() 2690using ToolStrip control = new(); 2726using ToolStrip control = new(); 2744using ToolStrip control = new(); 2764using ToolStrip control = new(); 2794using ToolStrip control = new(); 2824using ToolStrip control = new(); 2863using ToolStrip control = new(); 2892using ToolStrip control = new() 2920using ToolStrip control = new() 2984using ToolStrip control = new() 3087using ToolStrip control = new() 3148using ToolStrip control = new() 3187using ToolStrip control = new(); 3230using ToolStrip control = new() 3253using ToolStrip control = new(); 3297using ToolStrip control = new(); 3340using ToolStrip control = new() 3376using ToolStrip control = new(); 3404using ToolStrip control = new(); 3432using ToolStrip control = new(); 3439using ToolStrip control = new(); 3449using ToolStrip control = new(); 3477using ToolStrip control = new(); 3507using ToolStrip control = new(); 3528using ToolStrip control = new(); 3564using ToolStrip control = new(); 3584using ToolStrip control = new() 3607using ToolStrip control = new(); 3631using ToolStrip control = new(); 3656using ToolStrip control = new() 3678using ToolStrip control = new(); 3779using ToolStrip control = new() 3821using ToolStrip control = new(); 3850using ToolStrip control = new(); 3892using ToolStrip control = new(); 3929using ToolStrip control = new(); 3972using ToolStrip control = new(); 4031using ToolStrip control = new(); 4093using ToolStrip control = new(); 4101using ToolStrip control = new() 4169using ToolStrip control = new() 4357using ToolStrip control = new(); 4408using ToolStrip control = new() 4462using ToolStrip control = new(); 4778using ToolStrip toolStrip = new(); 4787using ToolStrip toolStrip = new(); 4810using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4831using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4856using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4877using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 7042using ToolStrip control = new(); 7112using ToolStrip otherControl = new(); 7135using ToolStrip otherControl = new(); 7291using ToolStrip toolStrip = new() { LayoutStyle = toolStripLayoutStyle, TabStop = tabStop, GripStyle = gripStyle }; 7377using ToolStrip toolStrip = new(); 7390using ToolStrip toolStrip = new(); 7399using ToolStrip toolStrip = new(); 7411using ToolStrip toolStrip = new(); 7423using var toolStrip = new ToolStrip() { AutoScrollMargin = new Size(10, 20) }; 7431using ToolStrip toolStrip = new(); 7453using ToolStrip toolStrip = new() { GripMargin = new Padding(1) };
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
15using ToolStrip toolStrip = new ToolStrip
TrackBarTests.cs (1)
399using ToolStrip control = new()
System.Windows.Forms.UI.IntegrationTests (4)
Dpi\ToolStripItemTests.Dpi.cs (1)
37using ToolStrip toolStrip = new();
DragDropTests.cs (2)
898public ToolStrip ToolStrip = new(); 958ToolStrip = new()
ToolStripTests.cs (1)
37using ToolStrip toolStrip = new()
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();
1077 references to ToolStrip
Accessibility_Core_App (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;
System.Windows.Forms (251)
System\Windows\Forms\Control.cs (1)
9882if (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)
2272ToolStrip toolStrip = (ToolStrip)container; 2336ToolStrip toolStrip = (ToolStrip)container; 2425internal virtual ToolStrip? GetToplevelOwnerToolStrip() 4077protected 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)
13public ToolStripAccessibleObject(ToolStrip owner) : base(owner) 18=> this.IsOwnerHandleCreated(out ToolStrip? _) ? HitTest((int)x, (int)y) : null; 25if (!this.IsOwnerHandleCreated(out ToolStrip? owner)) 43if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 123if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 152if (!this.TryGetOwnerAs(out ToolStrip? owner) || fragmentIndex < 0) 261if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.OverflowItems is null) 271if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.DisplayedItems is null) 281if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 326if (!this.TryGetOwnerAs(out ToolStrip? owner) || owner.Items is null) 384if (!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(); 1060internal override ToolStrip? GetToplevelOwnerToolStrip() 1315ToolStrip? toplevelToolStrip = GetToplevelOwnerToolStrip(); 1365ToolStrip? toplevel = GetToplevelOwnerToolStrip(); 1671ToolStrip? topLevelToolStrip = GetToplevelOwnerToolStrip(); 1672ToolStrip? parentToolStrip = OwnerItem?.ParentInternal; 1759ToolStrip? toolStrip = GetToplevelOwnerToolStrip(); 2033internal 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; 1620/// Returns the parent <see cref="ToolStrip"/>'s renderer 2332public ToolStrip? GetCurrentParent() => Parent; 2670ToolStrip? parent = ParentInternal; 2899protected virtual void OnParentChanged(ToolStrip? oldParent, ToolStrip? newParent) 3186internal void SetOwner(ToolStrip? newOwner) 3432ToolStrip? parent = ParentInternal; 3506internal 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) 382ToolStrip? 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)
16private static WeakRefCollection<ToolStrip>? t_activeToolStrips; 133internal static WeakRefCollection<ToolStrip> ToolStrips 149public static ToolStrip? FindToolStrip(string toolStripName) 151foreach (ToolStrip toolStrip in ToolStrips) 165internal static ToolStrip? FindToolStrip(Form owningForm, string toolStripName) 167ToolStrip? result = null; 168foreach (ToolStrip toolStrip in ToolStrips) 183private static bool CanChangeSelection(ToolStrip start, ToolStrip toolStrip) 212private static bool ChangeSelection(ToolStrip start, ToolStrip toolStrip) 295foreach (ToolStrip toolStrip in ToolStrips) 325internal static bool SelectNextToolStrip(ToolStrip start, bool forward) 333ToolStrip? wrappedControl = null; 334ToolStrip? nextControl = null; 344if (ToolStrips[index] is not ToolStrip toolStrip || 717foreach (ToolStrip toolStrip in ToolStrips) 796foreach (ToolStrip toolStrip in ToolStrips) 844ToolStrip? topMostToolStrip = toolStrip.GetToplevelOwnerToolStrip(); 1059internal static List<ToolStrip> FindMergeableToolStrips(ContainerControl? container) 1061List<ToolStrip> result = []; 1064foreach (ToolStrip toolStrip in ToolStrips) 1078private static bool IsSpecialMDIStrip(ToolStrip toolStrip) 1084public static bool Merge(ToolStrip sourceToolStrip, ToolStrip targetToolStrip) 1256public static bool Merge(ToolStrip sourceToolStrip, string targetName) 1261ToolStrip? target = FindToolStrip(targetName); 1268internal static bool RevertMergeInternal(ToolStrip targetToolStrip, ToolStrip? sourceToolStrip, bool revertMDIControls) 1304Stack<ToolStrip> reApply = new(); 1349ToolStrip mergeAgain = reApply.Pop(); 1365public static bool RevertMerge(ToolStrip targetToolStrip) 1371public static bool RevertMerge(ToolStrip targetToolStrip, ToolStrip sourceToolStrip) 1378=> FindToolStrip(targetName) is ToolStrip target && RevertMerge(target);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (16)
36private List<ToolStrip>? _inputFilterQueue; 46private ToolStrip? _toplevelToolStrip; 234internal static ToolStrip? GetActiveToolStrip() => Instance.GetActiveToolStripInternal(); 236internal ToolStrip? GetActiveToolStripInternal() 249private ToolStrip? GetCurrentTopLevelToolStrip() 253ToolStrip? activeToolStrip = GetActiveToolStripInternal(); 272if (Control.FromHandle(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown) 331ToolStrip? activeToolStrip = GetActiveToolStripInternal(); 388internal static void SetActiveToolStrip(ToolStrip toolStrip, bool menuKeyPressed) 398internal static void SetActiveToolStrip(ToolStrip toolStrip) 401private void SetActiveToolStripCore(ToolStrip toolStrip) 436ToolStrip? currentActiveToolStrip = GetActiveToolStripInternal(); 489internal static void RemoveActiveToolStrip(ToolStrip toolStrip) 494private void RemoveActiveToolStripCore(ToolStrip toolStrip) 529ToolStrip? activeToolStrip = GetActiveToolStrip(); 589ToolStrip? 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 (15)
416private Point GetStartLocation(ToolStrip toolStripToDrag) 456var toolStrip = e.Control as ToolStrip; 538var toolStrip = controls[i] as ToolStrip; 651var toolStrip = controlArray[i] as ToolStrip; 674private void GiveToolStripPanelFeedback(ToolStrip toolStripToDrag, Point screenLocation) 717public void Join(ToolStrip toolStripToDrag) 722public void Join(ToolStrip toolStripToDrag, int row) 749public void Join(ToolStrip toolStripToDrag, int x, int y) 754public void Join(ToolStrip toolStripToDrag, Point location) 778internal void MoveControl(ToolStrip? toolStripToDrag, Point screenLocation) 798private void MoveInsideContainer(ToolStrip toolStripToDrag, Point clientLocation) 991private void MoveOutsideContainer(ToolStrip toolStripToDrag, Point screenLocation)
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; 48if (control is not ToolStrip toolStrip) 50throw 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; 679ToolStrip? 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)
29&& toolStripTargetManager?.Owner is ToolStrip toolStrip
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
22private ToolStrip _toolStrip1;
System.Windows.Forms.Design (115)
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 (2)
46ToolStrip toolStrip = _designer.Component as ToolStrip;
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)
955&& 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\ToolStripContainerDesigner.cs (2)
176else if (typeof(ToolStrip).IsAssignableFrom(toolType)) 349else if (typeof(ToolStrip).IsAssignableFrom(toolType))
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; 887if (_toolStripSelected && e.Component is ToolStrip) 1012ToolStrip parent = changingItem.Owner; 1351if (comp is ToolStrip) 1538if (c is ToolStrip && (c != ToolStrip)) 1562if (c is ToolStrip && menu is null) 1774if (selComp is ToolStrip) 1802ToolStrip parentToolStrip = ToolStrip; 2179if (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 (1)
ToolStripDesignerTests.cs (1)
18using ToolStrip toolStrip = new();
System.Windows.Forms.Tests (687)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1426using ToolStrip toolStrip = new(); 1493using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1527using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) }; 1565using ToolStrip toolStrip = new() { Size = new Drawing.Size(1000, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (46)
15using ToolStrip toolStrip = new(); 17var accessibleObject = new ToolStrip.ToolStripAccessibleObject(toolStrip); 25using ToolStrip toolStrip = new() 40using ToolStrip toolStrip = new(); 51using ToolStrip toolStrip = new() 65using ToolStrip toolStrip = new() 79using ToolStrip toolStrip = new(); 107using ToolStrip toolStrip = new(); 131using ToolStrip toolStrip = CreateToolStrip(itemCount: 1, createControl: false); 142using ToolStrip toolStrip = CreateToolStrip(); 151using ToolStrip toolStrip = CreateToolStrip(); 161using ToolStrip toolStrip = new(); 223using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 235using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 262using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 274using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 297using ToolStrip toolStrip = CreateToolStrip(ToolStripGripStyle.Hidden, layout, dock, size, canOverflow: true, itemCount: 1); 320using ToolStrip toolStrip = CreateToolStrip(ToolStripGripStyle.Hidden, layout, dock, size, canOverflow: false, itemCount: 3); 341using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock: null, size, canOverflow: false, itemCount: 3); 353using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 369using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 385using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 401using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 417using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 435using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 453using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 470using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 532using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 544using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 555using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 567using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 1); 583using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 599using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 0); 616using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 632using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 648using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 670using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 692using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 709using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow, itemCount: 2); 740using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: true, itemCount: 3); 779using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 818using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 2); 854using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 879using ToolStrip toolStrip = CreateToolStrip(grip, layout, dock, size, canOverflow: false, itemCount: 3); 937private ToolStrip CreateToolStrip( 947ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
11using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (1)
92using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
69using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
20using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
74using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (4)
26using ToolStrip toolStrip = new(); 55using ToolStrip toolStrip = new(); 101using ToolStrip toolStrip = new(); 190using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (8)
114using ToolStrip toolStrip = new(); 203using ToolStrip toolStrip = new(); 217using ToolStrip toolStrip = new(); 229using ToolStrip toolStrip = new(); 242using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 267using ToolStrip toolStrip = new() { GripStyle = ToolStripGripStyle.Hidden }; 283using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 310using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (6)
125using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 138using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 155using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 168using ToolStrip toolStrip = CreateToolStripWithOverflow(5); 196private static ToolStrip CreateToolStripWithOverflow(int itemCount) 198ToolStrip toolStrip = new()
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
14using ToolStrip toolStrip = new(); 25using ToolStrip toolStrip = new(); 38using ToolStrip toolStrip = new(); 67using ToolStrip toolStrip = new(); 82using ToolStrip toolStrip = new() { AutoSize = false, Size = new(30, 30) }; 107using ToolStrip toolStrip = new() { AutoSize = false, Size = new(60, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
102using ToolStrip toolStrip = new(); 119using ToolStrip toolStrip = new() { Size = new Drawing.Size(500, 25) };
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
26using ToolStrip toolStrip = new(); 88using ToolStrip toolStrip = new(); 132using ToolStrip toolStrip = new();
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
53using ToolStrip toolStrip = new(); 69using ToolStrip toolStrip = new();
System\Windows\Forms\ControlTests.cs (6)
926using ToolStrip toolStrip1 = new() { TabStop = true, }; 927using ToolStrip toolStrip2 = new() { TabStop = true, }; 954form.Controls.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 }); 983using ToolStrip toolStrip1 = new() { TabStop = true }; 984using ToolStrip toolStrip2 = new() { TabStop = true }; 1011form.Controls.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 });
System\Windows\Forms\FlowLayoutSettingsTests.cs (10)
17using ToolStrip control = new() 47using ToolStrip control = new() 60using ToolStrip control = new() 95using ToolStrip control = new() 106using ToolStrip control = new() 117using ToolStrip control = new() 129using ToolStrip control = new() 169using ToolStrip control = new() 232using ToolStrip control = new() 244using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (1)
1724using ToolStrip control = new()
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (5)
162using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 172using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 258using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 269using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 298using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\MenuStripTests.cs (5)
354using ToolStrip control = new() 413ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 428ToolStrip.ToolStripAccessibleObject instance = Assert.IsAssignableFrom<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance());
System\Windows\Forms\PropertyGridTests.cs (10)
291Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 297Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 322Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 331Assert.Equal(expected, control.Controls.OfType<ToolStrip>().Single().BackColor); 3100Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3108Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3116Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible); 3146Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3157Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3168Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible);
System\Windows\Forms\StatusStripTests.cs (2)
549PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)]; 577PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.RenderMode)];
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (8)
11using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 23using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 35using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 47using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 61using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 86using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 99using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (8)
11using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 23using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 35using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 47using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 61using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 71using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 86using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 99using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (23)
13using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 26using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 38using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 50using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 60using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 69using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 81using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 95using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 104using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 113using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 124using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 138using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 154using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 165using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 175using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 187using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 202using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 214using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 223using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 238using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 256using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 270using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table }; 284using ToolStrip toolStrip = new() { LayoutStyle = ToolStripLayoutStyle.Table };
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (4)
17Type type = typeof(ToolStrip) 27using ToolStrip toolStrip = new(); 43using ToolStrip toolStrip = new(); 75using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripButtonTests.cs (12)
663using ToolStrip owner = new(); 691using ToolStrip owner = new(); 736using ToolStrip parent = new(); 764using ToolStrip parent = new(); 882using ToolStrip owner = new(); 903using ToolStrip owner = new(); 1269using ToolStrip owner = new() 1360using ToolStrip owner = new() 1459using ToolStrip parent = new() 1503using ToolStrip owner = new(); 1541using ToolStrip parent = new(); 1738public new ToolStrip Parent
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
15using ToolStrip toolStrip = new(); 41using ToolStrip toolStrip = new(); 67using ToolStrip toolStrip = new(); 93using ToolStrip toolStrip = new(); 119using ToolStrip toolStrip = new(); 146using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1327using ToolStrip control = new()
System\Windows\Forms\ToolStripControlHostTests.cs (23)
1384using ToolStrip parent = new(); 1385using ToolStrip otherParent = new(); 1451using ToolStrip owner = new(); 1452using ToolStrip parent = new(); 1453using ToolStrip otherParent = new(); 1529using ToolStrip parent = new(); 3055public void ToolStripControlHost_OnParentChanged_Invoke_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3073public void ToolStripControlHost_OnParentChanged_InvokeWithOwner_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3075using ToolStrip owner = new(); 3097using ToolStrip parent = new(); 3098using ToolStrip otherParent = new(); 3166using ToolStrip parent = new(); 3167using ToolStrip otherParent = new(); 3242public void ToolStripControlHost_OnParentChanged_InvokeDisposed_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3262public void ToolStripControlHost_OnParentChanged_InvokeDisposedWithOwner_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 3264using ToolStrip owner = new(); 4657public new ToolStrip Parent 4691public new void OnParentChanged(ToolStrip oldParent, ToolStrip newParent) => base.OnParentChanged(oldParent, newParent);
System\Windows\Forms\ToolStripCustomIComparerTests.cs (8)
11[InlineData(null, typeof(ToolStrip), -1)] 12[InlineData(typeof(ToolStrip), null, 1)] 13[InlineData(typeof(ToolStrip), typeof(ToolStrip), 0)] 14[InlineData(typeof(ToolStrip), typeof(ToolStripDropDown), 1)] 15[InlineData(typeof(ToolStripDropDown), typeof(ToolStrip), -1)] 20int result = _comparer.Compare((ToolStrip)obj1, (ToolStrip)obj2);
System\Windows\Forms\ToolStripDropDownItemTests.cs (3)
406using ToolStrip owner = new() 426using ToolStrip parent = new() 527public new ToolStrip Parent
System\Windows\Forms\ToolStripDropDownTests.cs (6)
1431PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 1447PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 1489using ToolStrip control = new() 1510using ToolStrip control = new()
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
22public void ToolStripGripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 45public void Ctor_Graphics_ToolStrip(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\ToolStripItemCollectionTests.cs (12)
134using ToolStrip toolStrip = new(); 146using ToolStrip toolStrip = new(); 234using ToolStrip toolStrip = new(); 247using ToolStrip toolStrip = new(); 260using ToolStrip toolStrip = new(); 290using ToolStrip toolStrip1 = new(); 291using ToolStrip toolStrip2 = new(); 306using ToolStrip toolStrip = new(); 320using ToolStrip toolStrip1 = new(); 321using ToolStrip toolStrip2 = new(); 337using ToolStrip toolStrip = new(); 350using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
35ToolStrip toolStrip = new(); 43public void Ctor_Graphics_ToolStripItem(Graphics g, ToolStripItem item, ToolStrip expectedToolStrip)
System\Windows\Forms\ToolStripItemTests.cs (279)
393using ToolStrip toolStrip = new(); 404using ToolStrip parent = new(); 429using ToolStrip parent = new(); 481using ToolStrip owner = new(); 513using ToolStrip owner = new(); 585using ToolStrip owner = new(); 612using ToolStrip owner = new(); 656using ToolStrip parent = new(); 683using ToolStrip parent = new(); 727using ToolStrip parent = new() 750using ToolStrip parent = new(); 808using ToolStrip owner = new(); 840using ToolStrip parent = new(); 892using ToolStrip owner = new(); 938using ToolStrip owner = new(); 999using ToolStrip parent = new(); 1037using ToolStrip parent = new(); 1213using ToolStrip owner = new(); 1256using ToolStrip owner = new(); 1302using ToolStrip owner = new(); 1351using ToolStrip parent = new(); 1394using ToolStrip parent = new(); 1428using ToolStrip parent = new(); 1546using ToolStrip owner = new() 1560using ToolStrip parent = new() 1590using ToolStrip owner = new(); 1610using ToolStrip owner = new(); 1643using ToolStrip parent = new(); 1669using ToolStrip parent = new(); 1792using ToolStrip owner = new(); 1812using ToolStrip owner = new(); 1845using ToolStrip parent = new(); 1873using ToolStrip parent = new(); 1921using ToolStrip owner = new(); 1941using ToolStrip owner = new(); 1974using ToolStrip parent = new(); 1998using ToolStrip parent = new(); 2058using ToolStrip owner = new(); 2069using ToolStrip parent = new(); 2133using ToolStrip owner = new(); 2174using ToolStrip owner = new(); 2226using ToolStrip parent = new(); 2250using ToolStrip parent = new(); 2377using ToolStrip owner = new(); 2410using ToolStrip parent = new(); 2469using ToolStrip owner = new() 2491using ToolStrip parent = new() 2617using ToolStrip owner = new(); 2644using ToolStrip owner = new(); 2681using ToolStrip owner = new(); 2709using ToolStrip owner = new(); 2752using ToolStrip parent = new(); 2779using ToolStrip parent = new(); 2816using ToolStrip parent = new(); 2856using ToolStrip parent = new(); 2933using ToolStrip parent = new() 2951using ToolStrip owner = new() 3005using ToolStrip owner = new(); 3046using ToolStrip owner = new(); 3099using ToolStrip parent = new(); 3133using ToolStrip parent = new(); 3236using ToolStrip owner = new() 3250using ToolStrip parent = new() 3280using ToolStrip owner = new(); 3300using ToolStrip owner = new(); 3333using ToolStrip parent = new(); 3362using ToolStrip parent = new(); 3480using ToolStrip owner = new(); 3516using ToolStrip owner = new(); 3568using ToolStrip parent = new(); 3614using ToolStrip parent = new(); 3676using ToolStrip owner = new() 3696using ToolStrip owner = new() 3717using ToolStrip owner = new() 3742using ToolStrip parent = new() 3764using ToolStrip parent = new() 3898using ToolStrip owner = new(); 3943using ToolStrip owner = new(); 4001using ToolStrip parent = new(); 4036using ToolStrip parent = new(); 4104using ToolStrip owner = new() 4149using ToolStrip owner = new() 4197using ToolStrip owner = new(); 4244using ToolStrip owner = new(); 4296using ToolStrip parent = new(); 4328using ToolStrip parent = new(); 4455using ToolStrip owner = new(); 4501using ToolStrip owner = new() 4549using ToolStrip owner = new(); 4605using ToolStrip parent = new(); 4644using ToolStrip parent = new() 4683using ToolStrip parent = new(); 4786using ToolStrip owner = new() 4864using ToolStrip owner = new() 4955using ToolStrip owner = new(); 5003using ToolStrip owner = new() 5049using ToolStrip owner = new(); 5103using ToolStrip parent = new(); 5140using ToolStrip parent = new() 5177using ToolStrip parent = new(); 5285using ToolStrip owner = new() 5377using ToolStrip owner = new() 5424using ToolStrip owner = new(); 5464using ToolStrip owner = new(); 5516using ToolStrip parent = new(); 5548using ToolStrip parent = new(); 5647using ToolStrip owner = new(); 5680using ToolStrip owner = new(); 5714using ToolStrip parent = new(); 5747using ToolStrip parent = new(); 5812using ToolStrip owner = new(); 5834using ToolStrip owner = new() 5850using ToolStrip parent = new(); 5872using ToolStrip parent = new() 5916using ToolStrip owner = new(); 5955using ToolStrip owner = new(); 6007using ToolStrip parent = new(); 6046using ToolStrip parent = new(); 6248using ToolStrip owner = new(); 6293using ToolStrip owner = new(); 6349using ToolStrip parent = new(); 6385using ToolStrip parent = new(); 6441using ToolStrip owner = new(); 6442using ToolStrip otherOwner = new(); 6490using ToolStrip owner = new(); 6491using ToolStrip otherOwner = new(); 6549using ToolStrip owner = new() 6580using ToolStrip owner = new(); 6581using ToolStrip otherOwner = new(); 6630using ToolStrip owner = new(); 6662using ToolStrip parent = new(); 6745using ToolStrip owner = new(); 6784using ToolStrip owner = new(); 6836using ToolStrip parent = new(); 6868using ToolStrip parent = new(); 6963using ToolStrip parent = new(); 6964using ToolStrip otherParent = new(); 7019using ToolStrip parent = new(); 7020using ToolStrip otherParent = new(); 7100using ToolStrip owner = new() 7117using ToolStrip parent = new() 7131using ToolStrip owner = new() 7135using ToolStrip parent = new() 7179using ToolStrip owner = new() 7221using ToolStrip owner = new() 7289using ToolStrip parent = new() 7324using ToolStrip parent = new() 7490using ToolStrip owner = new(); 7528using ToolStrip owner = new(); 7589using ToolStrip parent = new(); 7628using ToolStrip parent = new(); 7708using ToolStrip owner = new(); 7746using ToolStrip parent = new(); 7857using ToolStrip owner = new(); 7893using ToolStrip owner = new(); 7952using ToolStrip parent = new(); 7995using ToolStrip parent = new(); 8083using ToolStrip owner = new(); 8125using ToolStrip owner = new(); 8177using ToolStrip parent = new(); 8210using ToolStrip parent = new(); 8313using ToolStrip owner = new(); 8360using ToolStrip owner = new(); 8412using ToolStrip parent = new(); 8444using ToolStrip parent = new(); 8502using ToolStrip owner = new() 8520using ToolStrip parent = new() 8534using ToolStrip owner = new() 8538using ToolStrip parent = new() 8585using ToolStrip owner = new() 8627using ToolStrip owner = new() 8682using ToolStrip parent = new() 8717using ToolStrip parent = new() 8840using ToolStrip owner = new(); 8883using ToolStrip owner = new(); 8935using ToolStrip parent = new(); 8967using ToolStrip parent = new(); 9131using ToolStrip owner = new() 9153using ToolStrip parent = new() 9263using ToolStrip owner = new(); 9306using ToolStrip owner = new(); 9352using ToolStrip owner = new(); 9401using ToolStrip parent = new(); 9444using ToolStrip parent = new(); 9478using ToolStrip parent = new(); 9647using ToolStrip owner = new(); 9683using ToolStrip owner = new(); 9735using ToolStrip parent = new(); 9781using ToolStrip parent = new(); 9911using ToolStrip owner = new(); 9953using ToolStrip parent = new(); 10064using ToolStrip owner = new(); 10108using ToolStrip parent = new(); 10173using ToolStrip parent = new(); 10187using ToolStrip parent = new() 10204using ToolStrip owner = new(); 10218using ToolStrip owner = new() 10277using ToolStrip parent = new(); 10288using ToolStrip owner = new(); 10320using ToolStrip owner = new(); 10335using ToolStrip parent = new(); 10380using ToolStrip owner = new(); 10396using ToolStrip owner = new(); 10426using ToolStrip parent = new(); 10442using ToolStrip parent = new(); 10490using ToolStrip owner = new(); 10507using ToolStrip owner = new(); 10538using ToolStrip parent = new(); 10555using ToolStrip parent = new(); 10634using ToolStrip owner = new(); 10664using ToolStrip owner = new(); 10708using ToolStrip parent = new(); 10738using ToolStrip parent = new(); 10788using ToolStrip owner = new(); 10812using ToolStrip owner = new(); 10846using ToolStrip parent = new(); 10877using ToolStrip parent = new(); 11167using ToolStrip owner = new(); 11200using ToolStrip owner = new(); 11246using ToolStrip parent = new(); 11279using ToolStrip parent = new(); 11361using ToolStrip owner = new(); 11399using ToolStrip owner = new(); 11450using ToolStrip parent = new(); 11481using ToolStrip parent = new(); 11549using ToolStrip owner = new(); 11579using ToolStrip owner = new(); 11623using ToolStrip parent = new(); 11653using ToolStrip parent = new(); 11842using ToolStrip owner = new() 11874using ToolStrip parent = new() 11942using ToolStrip owner = new() 11974using ToolStrip owner = new() 12007using ToolStrip parent = new() 12039using ToolStrip parent = new() 12206using ToolStrip owner = new() 12271using ToolStrip owner = new(); 12317using ToolStrip owner = new(); 12382using ToolStrip parent = new(); 12419using ToolStrip parent = new(); 12539public void ToolStripItem_OnParentChanged_Invoke_Success(bool enabled, bool visible, Image image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent) 12739using ToolStrip owner = new(); 12789using ToolStrip owner = new(); 12852using ToolStrip parent = new(); 12895using ToolStrip parent = new(); 12975using ToolStrip owner = new(); 13025using ToolStrip owner = new(); 13088using ToolStrip parent = new(); 13131using ToolStrip parent = new(); 13260using ToolStrip owner = new(); 13304using ToolStrip owner = new(); 13370using ToolStrip owner = new(); 13436using ToolStrip owner = new(); 13496using ToolStrip parent = new(); 13540using ToolStrip parent = new(); 13671using ToolStrip control = new(); 13740using ToolStrip owner = new(); 13792using ToolStrip owner = new(); 13860using ToolStrip parent = new(); 13897using ToolStrip parent = new(); 13987using ToolStrip parent = new(); 14356using ToolStrip owner = new(); 14375using ToolStrip owner = new(); 14445using ToolStrip parent = new(); 14464using ToolStrip parent = new(); 14578using ToolStrip owner = new(); 14625using ToolStrip owner = new(); 14699using ToolStrip parent = new(); 14753using ToolStrip parent = new(); 14925using ToolStrip owner = new(); 14968using ToolStrip owner = new(); 15014using ToolStrip owner = new(); 15063using ToolStrip parent = new(); 15106using ToolStrip parent = new(); 15140using ToolStrip parent = new(); 15515public new ToolStrip Parent 15583public new void OnParentChanged(ToolStrip oldParent, ToolStrip newParent) => base.OnParentChanged(oldParent, newParent);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
447public new ToolStrip Parent
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
16using ToolStrip toolStrip1 = new(); 17using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripPanelTests.cs (2)
346using ToolStrip toolStrip1 = new(); 347using ToolStrip toolStrip2 = new();
System\Windows\Forms\ToolStripRendererTests.cs (4)
483public void ToolStripRenderer_DrawStatusStripSizingGrip_Invoke_CallsRenderStatusStripSizingGrip(ToolStrip toolStrip) 672public void ToolStripRenderer_Initialize_Invoke_Nop(ToolStrip toolStrip) 916public void ToolStripRenderer_OnRenderStatusStripSizingGrip_Invoke_Nop(ToolStrip toolStrip) 1023public new void Initialize(ToolStrip toolStrip) => base.Initialize(toolStrip);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (5)
22public void ToolStripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 37public void ToolStripRenderEventArgs_Ctor_Graphics_ToolStrip(ToolStrip toolStrip, Rectangle expectedAffectedBounds, Color expectedBackColor) 61public void ToolStripRenderEventArgs_Ctor_Graphics_ToolStrip_Rectangle_Color(ToolStrip toolStrip, Rectangle affectedBounds, Color backColor, Color expectedBackColor) 82ToolStrip owner = new(); 90public void ToolStripRenderEventArgs_ConnectedArea_Get_ReturnsEmpty(ToolStrip toolStrip)
System\Windows\Forms\ToolStripSeparatorTests.cs (16)
800using ToolStrip owner = new() 848using ToolStrip parent = new() 941using ToolStrip owner = new(); 972using ToolStrip owner = new(); 1016using ToolStrip parent = new(); 1047using ToolStrip parent = new(); 1130using ToolStrip owner = new() 1166using ToolStrip parent = new() 1217using ToolStrip owner = new() 1222using ToolStrip parent = new() 1288using ToolStrip owner = new() 1341using ToolStrip owner = new(); 1342using ToolStrip parent = new(); 1398using ToolStrip owner = new(); 1521using ToolStrip parent = new(); 1649public new ToolStrip Parent
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
13using ToolStrip toolStrip = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
12private readonly ToolStrip _toolStrip;
System\Windows\Forms\ToolStripTests.cs (131)
359using ToolStrip control = new() 384using ToolStrip control = new(); 413using ToolStrip control = new(); 450using ToolStrip control = new(); 497using ToolStrip control = new(); 529using ToolStrip control = new(); 573using ToolStrip control = new() 588using ToolStrip control = new() 609using ToolStrip control = new(); 638using ToolStrip control = new(); 674using ToolStrip control = new() 689using ToolStrip control = new() 711using ToolStrip control = new(); 774using ToolStrip control = new(); 802using ToolStrip control = new(); 819using ToolStrip control = new(); 846using ToolStrip control = new(); 868using ToolStrip control = new() 885using ToolStrip control = new(); 913using ToolStrip control = new() 971using ToolStrip control = new() 1022using ToolStrip control = new() 1067using ToolStrip control = new() 1088using ToolStrip control = new() 1103using ToolStrip control = new() 1120using ToolStrip control = new() 1137using ToolStrip control = new() 1155using ToolStrip control = new(); 1198using ToolStrip control = new(); 1225using ToolStrip control = new(); 1273using ToolStrip control = new() 1294using ToolStrip control = new() 1333using ToolStrip control = new() 1349using ToolStrip control = new(); 1391using ToolStrip control = new(); 1405using ToolStrip control = new() 1426using ToolStrip control = new() 1460using ToolStrip control = new(); 1504using ToolStrip control = new(); 1569using ToolStrip control = new(); 1627using ToolStrip toolStrip1 = new(); 1647using ToolStrip toolStrip1 = new(); 1748using ToolStrip control = new() 1774using ToolStrip control = new() 1878using ToolStrip control = new() 1909using ToolStrip control = new() 2014using ToolStrip control = new() 2159using ToolStrip control = new() 2176using ToolStrip control = new(); 2204PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 2205using ToolStrip control = new(); 2220PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.DefaultDropDownDirection)]; 2221using ToolStrip control = new(); 2241using ToolStrip control = new(); 2372using ToolStrip control = new() 2456using ToolStrip control = new() 2562using ToolStrip control = new() 2627using ToolStrip control = new() 2666using ToolStrip control = new(); 2674using ToolStrip control = new() 2690using ToolStrip control = new(); 2726using ToolStrip control = new(); 2744using ToolStrip control = new(); 2764using ToolStrip control = new(); 2794using ToolStrip control = new(); 2824using ToolStrip control = new(); 2863using ToolStrip control = new(); 2892using ToolStrip control = new() 2920using ToolStrip control = new() 2984using ToolStrip control = new() 3087using ToolStrip control = new() 3148using ToolStrip control = new() 3187using ToolStrip control = new(); 3230using ToolStrip control = new() 3253using ToolStrip control = new(); 3297using ToolStrip control = new(); 3340using ToolStrip control = new() 3375PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)]; 3376using ToolStrip control = new(); 3403PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.RenderMode)]; 3404using ToolStrip control = new(); 3432using ToolStrip control = new(); 3439using ToolStrip control = new(); 3449using ToolStrip control = new(); 3477using ToolStrip control = new(); 3507using ToolStrip control = new(); 3528using ToolStrip control = new(); 3564using ToolStrip control = new(); 3584using ToolStrip control = new() 3607using ToolStrip control = new(); 3631using ToolStrip control = new(); 3656using ToolStrip control = new() 3678using ToolStrip control = new(); 3779using ToolStrip control = new() 3821using ToolStrip control = new(); 3850using ToolStrip control = new(); 3892using ToolStrip control = new(); 3929using ToolStrip control = new(); 3972using ToolStrip control = new(); 4031using ToolStrip control = new(); 4093using ToolStrip control = new(); 4101using ToolStrip control = new() 4169using ToolStrip control = new() 4208ToolStrip.ToolStripAccessibleObject instance = Assert.IsType<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 4223ToolStrip.ToolStripAccessibleObject instance = Assert.IsType<ToolStrip.ToolStripAccessibleObject>(control.CreateAccessibilityInstance()); 4357using ToolStrip control = new(); 4408using ToolStrip control = new() 4462using ToolStrip control = new(); 4778using ToolStrip toolStrip = new(); 4787using ToolStrip toolStrip = new(); 4810using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4831using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4856using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 4877using ToolStrip toolStrip = new() { RightToLeft = rightToLeft, TabStop = tabStop }; 7042using ToolStrip control = new(); 7112using ToolStrip otherControl = new(); 7135using ToolStrip otherControl = new(); 7291using ToolStrip toolStrip = new() { LayoutStyle = toolStripLayoutStyle, TabStop = tabStop, GripStyle = gripStyle }; 7377using ToolStrip toolStrip = new(); 7390using ToolStrip toolStrip = new(); 7399using ToolStrip toolStrip = new(); 7411using ToolStrip toolStrip = new(); 7423using var toolStrip = new ToolStrip() { AutoScrollMargin = new Size(10, 20) }; 7431using ToolStrip toolStrip = new(); 7453using ToolStrip toolStrip = new() { GripMargin = new Padding(1) };
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
15using ToolStrip toolStrip = new ToolStrip
TrackBarTests.cs (1)
399using ToolStrip control = new()
System.Windows.Forms.UI.IntegrationTests (3)
Dpi\ToolStripItemTests.Dpi.cs (1)
37using ToolStrip toolStrip = new();
DragDropTests.cs (1)
898public ToolStrip ToolStrip = new();
ToolStripTests.cs (1)
37using ToolStrip toolStrip = new()
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;