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