7 types derived from ToolStripButton
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
8internal partial class PropertyGridToolStripButton : ToolStripButton
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
9internal partial class ToolStripGrip : ToolStripButton
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
18private class ToolStripSplitButtonButton : ToolStripButton
System\Windows\Forms\Printing\PrintPreviewDialog.PrintPreviewDialogToolStripButton.cs (1)
8internal class PrintPreviewDialogToolStripButton : ToolStripButton
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripButtonTests.cs (2)
1687private class CantShowKeyboardCuesToolStripButton : ToolStripButton 1694private class SubToolStripButton : ToolStripButton
System\Windows\Forms\ToolStripItemTests.cs (1)
15478private class SubToolStripButton : ToolStripButton
146 instantiations of ToolStripButton
Accessibility_Core_App (23)
DataControls.Designer.cs (7)
34this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); 36this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton(); 37this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); 38this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); 42this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); 43this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); 45this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
Menu_Toolbars_controls.Designer.cs (7)
92newToolStripButton = new ToolStripButton(); 94toolStripButton1 = new ToolStripButton(); 95toolStripButton2 = new ToolStripButton(); 96toolStripButton3 = new ToolStripButton(); 97toolStripButton4 = new ToolStripButton(); 98toolStripButton5 = new ToolStripButton(); 99toolStripButton6 = new ToolStripButton();
ToolStripContainer.Designer.cs (9)
36this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); 39this.newToolStripButton = new System.Windows.Forms.ToolStripButton(); 40this.openToolStripButton = new System.Windows.Forms.ToolStripButton(); 41this.saveToolStripButton = new System.Windows.Forms.ToolStripButton(); 42this.printToolStripButton = new System.Windows.Forms.ToolStripButton(); 44this.cutToolStripButton = new System.Windows.Forms.ToolStripButton(); 45this.copyToolStripButton = new System.Windows.Forms.ToolStripButton(); 46this.pasteToolStripButton = new System.Windows.Forms.ToolStripButton(); 48this.helpToolStripButton = new System.Windows.Forms.ToolStripButton();
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1777text == "-" ? new ToolStripSeparator() : new ToolStripButton(text, image, onClick);
System\Windows\Forms\DataBinding\BindingNavigator.cs (6)
132MoveFirstItem = new ToolStripButton(); 133MovePreviousItem = new ToolStripButton(); 134MoveNextItem = new ToolStripButton(); 135MoveLastItem = new ToolStripButton(); 138AddNewItem = new ToolStripButton(); 139DeleteItem = new ToolStripButton();
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
760_printToolStripButton = new ToolStripButton(); 778_closeToolStripButton = new ToolStripButton();
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
23using ToolStripButton toolStripButton = new();
System\Windows\Forms\Design\GroupedContextMenuStripTests.cs (2)
22using ToolStripButton toolStripButton = new(); 35using ToolStripButton toolStripButton = new();
System.Windows.Forms.Tests (100)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1531using ToolStripButton button = new();
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
991return new ToolStripButton()
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (13)
14using ToolStripButton toolStripButton = new(); 23using ToolStripButton toolStripButton = new(); 34using ToolStripButton toolStripButton = new(); 45using ToolStripButton toolStripButton = new() 58using ToolStripButton toolStripButton = new() 87using ToolStripButton toolStripButton = new(); 99using ToolStripButton toolStripButton = new() 113using ToolStripButton toolStripButton = new() 133using ToolStripButton toolStripButton = new() 147using ToolStripButton toolStripButton = new() 163using ToolStripButton toolStripButton = new() 176using ToolStripButton toolStripButton = new() 201using ToolStripButton toolStripButton = new();
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (9)
14using ToolStripButton toolStripItem = new(); 25using ToolStripButton toolStripItem = new(); 39using ToolStripButton toolStripItem = new(); 68using ToolStripButton toolStripItem = new(); 88using ToolStripButton toolStripItem = new(); 101using ToolStripButton toolStripItem = new(); 113using ToolStripButton toolStripItem = new(); 185using ToolStripButton toolStripItem = new(); 214return new ToolStripButton
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (1)
121using ToolStripButton button = new() { Text = "Button" };
System\Windows\Forms\ControlTests.cs (2)
931using ToolStripButton toolStrip1_Button1 = new(); 988using ToolStripButton toolStrip1_Button1 = new();
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (4)
15using ToolStripButton toolStripItem = new(); 28using ToolStripButton toolStripItem = new(); 44using ToolStripButton toolStripItem = new(); 76using ToolStripButton toolStripItem = new();
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (6)
13using ToolStripButton toolStripButton = new(); 22yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.Down }; 23yield return new object[] { graphics, new ToolStripButton(), new Rectangle(-1, -2, -3, -4), Color.Blue, ArrowDirection.Down }; 51using ToolStripButton button = new(); 71using ToolStripButton button = new(); 86using ToolStripButton button = new();
System\Windows\Forms\ToolStripButtonTests.cs (14)
445using ToolStripButton item = new("text", null, onClick); 543using ToolStripButton item = new("text", null, onClick, "name"); 552using ToolStripButton item = new() 620using ToolStripButton item = new() 640using ToolStripButton item = new() 664using ToolStripButton item = new() 692using ToolStripButton item = new() 807using ToolStripButton item = new() 865using ToolStripButton item = new() 883using ToolStripButton item = new() 904using ToolStripButton item = new() 937using ToolStripButton item = new() 995using ToolStripButton item = new(); 1089using ToolStripButton item = new();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
16using ToolStripButton toolStripButton = new() 42using ToolStripButton toolStripButton = new() 69using ToolStripButton toolStripButton = new(); 95using ToolStripButton toolStripButton = new();
System\Windows\Forms\ToolStripItemClickedEventArgsTests.cs (1)
11yield return new object[] { new ToolStripButton() };
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
129items.Select(item => new ToolStripButton(item.Name) { Name = item.Key }).ToArray(); 147ToolStripItem[] toolStripItems = items.Select(item => new ToolStripButton(item.Name) { Name = item.Key }).ToArray();
System\Windows\Forms\ToolStripItemEventArgsTests.cs (1)
11yield return new object[] { new ToolStripButton() };
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (9)
16yield return new object[] { null, new ToolStripButton() }; 32yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), null }; 33yield return new object[] { graphics, new ToolStripButton() { Image = image }, new Rectangle(1, 2, 3, 4), image }; 36graphics, new ToolStripButton 44graphics, new ToolStripButton 52graphics, new ToolStripButton 76ToolStripButton item = new() 92yield return new object[] { new ToolStripButton(), new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 93yield return new object[] { new ToolStripButton() { Image = new Bitmap(10, 10) }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) };
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (3)
16yield return new object[] { null, new ToolStripButton() }; 32yield return new object[] { graphics, new ToolStripButton(), null }; 34ToolStripButton toolStripItem = new();
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (8)
12yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.Top - 1 }; 13yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top }; 14yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Bottom }; 37yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, ContentAlignment.TopLeft - 1, TextFormatFlags.Default | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 38yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.MiddleCenter, TextFormatFlags.Default | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 39yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.BottomRight, TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.HidePrefix }; 40yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, (ContentAlignment)(-1), TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.RightToLeft | TextFormatFlags.HidePrefix }; 82ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
78yield return new object[] { new ToolStripOverflow(new ToolStripButton()) };
System\Windows\Forms\ToolStripSplitButtonTests.cs (3)
350using ToolStripButton defaultItem = new(); 374using ToolStripButton defaultItem = new(); 398using ToolStripButton defaultItem = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (4)
25using ToolStripButton toolStripItem = new(); 49using ToolStripButton toolStripItem = new(); 73using ToolStripButton toolStripItem = new(); 116using ToolStripButton newToolStripItem = new();
System\Windows\Forms\ToolStripTests.cs (12)
4811using ToolStripButton toolStripButton1 = new(); 4812using ToolStripButton toolStripButton2 = new(); 4813using ToolStripButton toolStripButton3 = new(); 4832using ToolStripButton toolStripButton1 = new(); 4833using ToolStripButton toolStripButton2 = new(); 4834using ToolStripButton toolStripButton3 = new(); 4857using ToolStripButton toolStripButton1 = new(); 4858using ToolStripButton toolStripButton2 = new(); 4859using ToolStripButton toolStripButton3 = new(); 4878using ToolStripButton toolStripButton1 = new(); 4879using ToolStripButton toolStripButton2 = new(); 4880using ToolStripButton toolStripButton3 = new();
ToolStripDropDownMenuTests.cs (1)
19using ToolStripButton owner = new();
System.Windows.Forms.UI.IntegrationTests (2)
Dpi\ToolStripItemTests.Dpi.cs (1)
38using ToolStripButton toolStripItemOpen = new("Open");
ToolStripTests.cs (1)
32using ToolStripButton toolStripButton = new()
WinFormsControlsTest (9)
Dialogs.cs (1)
27_btnOpen = new("&Open dialog")
MessageBoxes.cs (1)
18_btnOpen = new("Show MessageBox")
ToolStripTests.Designer.cs (7)
44this.toolStrip2_Button1 = new System.Windows.Forms.ToolStripButton(); 45this.toolStrip2_Button2 = new System.Windows.Forms.ToolStripButton(); 46this.toolStrip2_Button3 = new System.Windows.Forms.ToolStripButton(); 47this.toolStrip2_Button4 = new System.Windows.Forms.ToolStripButton(); 48this.toolStrip2_Button5 = new System.Windows.Forms.ToolStripButton(); 49this.toolStrip2_Button6 = new System.Windows.Forms.ToolStripButton(); 65this.thirdLevelButton = new System.Windows.Forms.ToolStripButton();
184 references to ToolStripButton
Accessibility_Core_App (27)
DataControls.Designer.cs (7)
374private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem; 376private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem; 377private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; 378private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; 382private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; 383private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; 394private System.Windows.Forms.ToolStripButton toolStripButton1;
Menu_Toolbars_controls.Designer.cs (7)
651private ToolStripButton newToolStripButton; 673private ToolStripButton toolStripButton1; 674private ToolStripButton toolStripButton2; 675private ToolStripButton toolStripButton3; 676private ToolStripButton toolStripButton4; 677private ToolStripButton toolStripButton5; 678private ToolStripButton toolStripButton6;
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. 64if (item is ToolStripButton)
RemainingControls.cs (2)
15if (item is ToolStripButton) 25if (item is ToolStripButton)
ToolStripContainer.Designer.cs (9)
620private System.Windows.Forms.ToolStripButton toolStripButton1; 633private System.Windows.Forms.ToolStripButton newToolStripButton; 634private System.Windows.Forms.ToolStripButton openToolStripButton; 635private System.Windows.Forms.ToolStripButton saveToolStripButton; 636private System.Windows.Forms.ToolStripButton printToolStripButton; 638private System.Windows.Forms.ToolStripButton cutToolStripButton; 639private System.Windows.Forms.ToolStripButton copyToolStripButton; 640private System.Windows.Forms.ToolStripButton pasteToolStripButton; 642private System.Windows.Forms.ToolStripButton helpToolStripButton;
System.Windows.Forms (24)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
51private ToolStripButton[]? _viewSortButtons; 55private ToolStripButton? _viewPropertyPagesButton; 837ToolStripButton newButton; 1019ToolStripButton? viewTabButton = null; 1529ToolStripButton button = CreatePushButton( 3106SelectViewTabButton((ToolStripButton)sender, true); 3541ToolStripButton? selectedButton = _selectedTab?.Button; 3589ToolStripButton? selectedButton = _selectedTab?.Button; 3704private void SelectViewTabButton(ToolStripButton button, bool updateSelection) 3719private bool SelectViewTabButtonDefault(ToolStripButton? button) 3862_viewSortButtons = new ToolStripButton[3];
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.TabInfo.cs (1)
11private record TabInfo(PropertyTab Tab, PropertyTabScope Scope, ToolStripButton Button)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (2)
16private readonly ToolStripButton _ownerItem; 18public ToolStripButtonAccessibleObject(ToolStripButton ownerItem) : base(ownerItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (5)
218if (e.Item.Selected && (!e.Item.Pressed || e.Item is ToolStripButton)) 237if ((typeof(ToolStripButton).IsAssignableFrom(e.Item.GetType()) 238&& ((ToolStripButton)e.Item).DisplayStyle != ToolStripItemDisplayStyle.Image 239&& ((ToolStripButton)e.Item).Checked) 407if (e.Item is ToolStripButton button && button.Checked)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
345ToolStripButton? item = e.Item as ToolStripButton;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
157if (item is ToolStripButton toolStripButton && toolStripButton.Checked)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
25private ToolStripButton _printToolStripButton; 43private ToolStripButton _closeToolStripButton;
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
303name = NameFromText(itemText, typeof(ToolStripButton), nameCreationService, true); 318item = (ToolStripButton)_host.CreateComponent(typeof(ToolStripButton), name);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (2)
83if (component is ToolStripButton or ToolStripSplitButton or ToolStripDropDownButton) 88image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
605if (item is ToolStripButton or ToolStripSplitButton or ToolStripDropDownButton) 610image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
43[typeof(ToolStripButton), typeof(ToolStripLabel), typeof(ToolStripSplitButton), typeof(ToolStripDropDownButton), typeof(ToolStripSeparator), typeof(ToolStripComboBox), typeof(ToolStripTextBox), typeof(ToolStripProgressBar)];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
528if (component is ToolStripButton or ToolStripSplitButton or ToolStripDropDownButton) 533image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
813if (newItem.Image is null && newItem is ToolStripButton) 818image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (3)
23using ToolStripButton toolStripButton = new(); 27PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(ToolStripButton)); 28PropertyDescriptor? propertyDescriptor = properties[nameof(ToolStripButton.Text)];
System\Windows\Forms\Design\GroupedContextMenuStripTests.cs (2)
22using ToolStripButton toolStripButton = new(); 35using ToolStripButton toolStripButton = new();
System.Windows.Forms.Tests (105)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1531using ToolStripButton button = new();
System\Windows\Forms\AccessibleObjects\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObjectTests.cs (19)
15ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 32ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 42ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 43ToolStripButton propertyPagesButton = propertyGrid.TestAccessor().Dynamic._viewPropertyPagesButton; 60ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 73ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 74ToolStripButton categoryButton = toolStripButtons[0]; 75ToolStripButton alphaButton = toolStripButtons[1]; 101ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 102ToolStripButton categoryButton = toolStripButtons[0]; 103ToolStripButton alphaButton = toolStripButtons[1]; 129ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 130ToolStripButton categoryButton = toolStripButtons[0]; 131ToolStripButton alphaButton = toolStripButtons[1]; 151ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 152ToolStripButton categoryButton = toolStripButtons[0]; 153ToolStripButton alphaButton = toolStripButtons[1]; 178ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 179ToolStripButton propertyPagesButton = propertyGrid.TestAccessor().Dynamic._viewPropertyPagesButton;
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (14)
5using static System.Windows.Forms.ToolStripButton; 14using ToolStripButton toolStripButton = new(); 23using ToolStripButton toolStripButton = new(); 34using ToolStripButton toolStripButton = new(); 45using ToolStripButton toolStripButton = new() 58using ToolStripButton toolStripButton = new() 87using ToolStripButton toolStripButton = new(); 99using ToolStripButton toolStripButton = new() 113using ToolStripButton toolStripButton = new() 133using ToolStripButton toolStripButton = new() 147using ToolStripButton toolStripButton = new() 163using ToolStripButton toolStripButton = new() 176using ToolStripButton toolStripButton = new() 201using ToolStripButton toolStripButton = new();
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (8)
14using ToolStripButton toolStripItem = new(); 25using ToolStripButton toolStripItem = new(); 39using ToolStripButton toolStripItem = new(); 68using ToolStripButton toolStripItem = new(); 88using ToolStripButton toolStripItem = new(); 101using ToolStripButton toolStripItem = new(); 113using ToolStripButton toolStripItem = new(); 185using ToolStripButton toolStripItem = new();
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (1)
121using ToolStripButton button = new() { Text = "Button" };
System\Windows\Forms\ControlTests.cs (2)
931using ToolStripButton toolStrip1_Button1 = new(); 988using ToolStripButton toolStrip1_Button1 = new();
System\Windows\Forms\PropertyGridTests.cs (3)
3877ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons; 3878ToolStripButton categoryButton = toolStripButtons[0]; 3879ToolStripButton alphaButton = toolStripButtons[1];
System\Windows\Forms\PropertyGridToolStripButtonTests.cs (1)
12ToolStripButton[] toolStripButtons = propertyGrid.TestAccessor().Dynamic._viewSortButtons;
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (4)
15using ToolStripButton toolStripItem = new(); 28using ToolStripButton toolStripItem = new(); 44using ToolStripButton toolStripItem = new(); 76using ToolStripButton toolStripItem = new();
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
13using ToolStripButton toolStripButton = new(); 51using ToolStripButton button = new(); 71using ToolStripButton button = new(); 86using ToolStripButton button = new();
System\Windows\Forms\ToolStripButtonTests.cs (14)
445using ToolStripButton item = new("text", null, onClick); 543using ToolStripButton item = new("text", null, onClick, "name"); 552using ToolStripButton item = new() 620using ToolStripButton item = new() 640using ToolStripButton item = new() 664using ToolStripButton item = new() 692using ToolStripButton item = new() 807using ToolStripButton item = new() 865using ToolStripButton item = new() 883using ToolStripButton item = new() 904using ToolStripButton item = new() 937using ToolStripButton item = new() 995using ToolStripButton item = new(); 1089using ToolStripButton item = new();
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
16using ToolStripButton toolStripButton = new() 42using ToolStripButton toolStripButton = new() 69using ToolStripButton toolStripButton = new(); 95using ToolStripButton toolStripButton = new();
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2962ToolStripButton button = Assert.IsType<ToolStripButton>(control.CreateDefaultItem(text, image, onClick));
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (1)
76ToolStripButton item = new()
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
34ToolStripButton toolStripItem = new();
System\Windows\Forms\ToolStripSplitButtonTests.cs (3)
350using ToolStripButton defaultItem = new(); 374using ToolStripButton defaultItem = new(); 398using ToolStripButton defaultItem = new();
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (4)
25using ToolStripButton toolStripItem = new(); 49using ToolStripButton toolStripItem = new(); 73using ToolStripButton toolStripItem = new(); 116using ToolStripButton newToolStripItem = new();
System\Windows\Forms\ToolStripTests.cs (18)
4280ToolStripButton button = Assert.IsType<ToolStripButton>(control.CreateDefaultItem(text, image, onClick)); 4811using ToolStripButton toolStripButton1 = new(); 4812using ToolStripButton toolStripButton2 = new(); 4813using ToolStripButton toolStripButton3 = new(); 4814toolStrip.Items.AddRange((ToolStripButton[])[toolStripButton1, toolStripButton2, toolStripButton3]); 4832using ToolStripButton toolStripButton1 = new(); 4833using ToolStripButton toolStripButton2 = new(); 4834using ToolStripButton toolStripButton3 = new(); 4835toolStrip.Items.AddRange((ToolStripButton[])[toolStripButton1, toolStripButton2, toolStripButton3]); 4857using ToolStripButton toolStripButton1 = new(); 4858using ToolStripButton toolStripButton2 = new(); 4859using ToolStripButton toolStripButton3 = new(); 4860toolStrip.Items.AddRange((ToolStripButton[])[toolStripButton1, toolStripButton2, toolStripButton3]); 4878using ToolStripButton toolStripButton1 = new(); 4879using ToolStripButton toolStripButton2 = new(); 4880using ToolStripButton toolStripButton3 = new(); 4881toolStrip.Items.AddRange((ToolStripButton[])[toolStripButton1, toolStripButton2, toolStripButton3]);
ToolStripDropDownMenuTests.cs (1)
19using ToolStripButton owner = new();
System.Windows.Forms.UI.IntegrationTests (2)
Dpi\ToolStripItemTests.Dpi.cs (1)
38using ToolStripButton toolStripItemOpen = new("Open");
ToolStripTests.cs (1)
32using ToolStripButton toolStripButton = new()
WinFormsControlsTest (9)
Dialogs.cs (1)
15private readonly ToolStripButton _btnOpen;
MessageBoxes.cs (1)
11private readonly ToolStripButton _btnOpen;
ToolStripTests.Designer.cs (7)
476private System.Windows.Forms.ToolStripButton toolStrip2_Button1; 477private System.Windows.Forms.ToolStripButton toolStrip2_Button2; 478private System.Windows.Forms.ToolStripButton toolStrip2_Button3; 479private System.Windows.Forms.ToolStripButton toolStrip2_Button4; 480private System.Windows.Forms.ToolStripButton toolStrip2_Button5; 481private System.Windows.Forms.ToolStripButton toolStrip2_Button6; 482private System.Windows.Forms.ToolStripButton thirdLevelButton;