1 type derived from ToolStripSeparator
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
1629private class SubToolStripSeparator : ToolStripSeparator
91 instantiations of ToolStripSeparator
Accessibility_Core_App (21)
DataControls.Designer.cs (4)
39this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); 41this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 44this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); 49this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
Menu_Toolbars_controls.Designer.cs (9)
45toolStripSeparator = new ToolStripSeparator(); 48toolStripSeparator1 = new ToolStripSeparator(); 51toolStripSeparator2 = new ToolStripSeparator(); 56toolStripSeparator3 = new ToolStripSeparator(); 60toolStripSeparator4 = new ToolStripSeparator(); 69toolStripSeparator5 = new ToolStripSeparator(); 81toolStripSeparator9 = new ToolStripSeparator(); 86toolStripSeparator8 = new ToolStripSeparator(); 93toolStripSeparator7 = new ToolStripSeparator();
ToolStripContainer.Designer.cs (8)
43this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); 47this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); 62this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); 65this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 68this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); 73this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); 77this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); 86this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
DesignSurface (2)
MainForm.Designer.cs (2)
47this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); 53this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
System.Windows.Forms (12)
System\Windows\Forms\ContextMenuStrip.cs (1)
70contextMenuStrip.Items.Add(new ToolStripSeparator());
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
146return new ToolStripSeparator();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1635ToolStripSeparator button = new();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1777text == "-" ? new ToolStripSeparator() : new ToolStripButton(text, image, onClick);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
234itemToAdd = new ToolStripSeparator(); 516return new ToolStripSeparator();
System\Windows\Forms\DataBinding\BindingNavigator.cs (3)
141ToolStripSeparator separator1 = new(); 142ToolStripSeparator separator2 = new(); 143ToolStripSeparator separator3 = new();
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
83ToolStripSeparator separator = new ToolStripSeparator
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
771_separatorToolStripSeparator = new ToolStripSeparator(); 777_separatorToolStripSeparator1 = new ToolStripSeparator();
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (1)
56Items.Add(new ToolStripSeparator());
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
310ToolStripSeparator separator = new();
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
188_toolStripSeparator1 = new ToolStripSeparator();
System.Windows.Forms.Tests (48)
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (2)
139using ToolStripSeparator separator = new(); 179using ToolStripSeparator separator = new();
System\Windows\Forms\AccessibleObjects\ToolStripSeparator.ToolStripSeparatorAccessibleObjectTests.cs (4)
14using ToolStripSeparator toolStripSeparator = new(); 23using ToolStripSeparator toolStripSeparator = new(); 34using ToolStripSeparator toolStripSeparator = new(); 61using ToolStripSeparator toolStripSeparator = new();
System\Windows\Forms\ToolStripRendererTests.cs (2)
421yield return new object[] { new ToolStripSeparatorRenderEventArgs(graphics, new ToolStripSeparator(), true) }; 422yield return new object[] { new ToolStripSeparatorRenderEventArgs(graphics, new ToolStripSeparator(), false) };
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (3)
16yield return new object[] { null, new ToolStripSeparator() }; 31yield return new object[] { graphics, new ToolStripSeparator(), true }; 32yield return new object[] { graphics, new ToolStripSeparator(), false };
System\Windows\Forms\ToolStripSeparatorTests.cs (37)
95using ToolStripSeparator item = new() 122using ToolStripSeparator item = new() 137using ToolStripSeparator item = new() 161using ToolStripSeparator item = new() 172using ToolStripSeparator item = new() 186using ToolStripSeparator item = new(); 221using ToolStripSeparator item = new(); 229using ToolStripSeparator item = new() 256using ToolStripSeparator item = new() 276using ToolStripSeparator item = new(); 320using ToolStripSeparator item = new() 326Assert.Equal(value ?? new ToolStripSeparator().Font, item.Font); 330Assert.Equal(value ?? new ToolStripSeparator().Font, item.Font); 337using ToolStripSeparator item = new() 351using ToolStripSeparator item = new(); 387using ToolStripSeparator item = new(); 403using ToolStripSeparator item = new(); 430using ToolStripSeparator item = new() 449using ToolStripSeparator item = new() 466using ToolStripSeparator item = new(); 476using ToolStripSeparator item = new() 495using ToolStripSeparator item = new() 514using ToolStripSeparator item = new() 540using ToolStripSeparator item = new() 557using ToolStripSeparator item = new() 576using ToolStripSeparator item = new() 590using ToolStripSeparator item = new(); 626using ToolStripSeparator item = new() 643using ToolStripSeparator item = new(); 659using ToolStripSeparator item = new() 674using ToolStripSeparator item = new(); 682using ToolStripSeparator item = new() 701using ToolStripSeparator item = new(); 709using ToolStripSeparator item = new() 756using ToolStripSeparator item = new(); 804using ToolStripSeparator item = new() 834using ToolStripSeparator item = new()
WinFormsControlsTest (5)
Dialogs.cs (1)
56toolbar.Items.Add(new ToolStripSeparator { Visible = true });
MenuStripAndCheckedListBox.Designer.cs (2)
38this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 47this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
MessageBoxes.cs (1)
42toolbar.Items.Add(new ToolStripSeparator { Visible = true });
ToolStripSeparatorPreferredSize.cs (1)
34_toolStripSeparator1 = new ToolStripSeparator();
119 references to ToolStripSeparator
Accessibility_Core_App (21)
DataControls.Designer.cs (4)
379private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; 381private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; 384private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; 398private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
Menu_Toolbars_controls.Designer.cs (9)
620private ToolStripSeparator toolStripSeparator; 623private ToolStripSeparator toolStripSeparator1; 626private ToolStripSeparator toolStripSeparator2; 631private ToolStripSeparator toolStripSeparator3; 635private ToolStripSeparator toolStripSeparator4; 644private ToolStripSeparator toolStripSeparator5; 652private ToolStripSeparator toolStripSeparator7; 660private ToolStripSeparator toolStripSeparator9; 664private ToolStripSeparator toolStripSeparator8;
ToolStripContainer.Designer.cs (8)
637private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; 641private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; 646private System.Windows.Forms.ToolStripSeparator toolStripSeparator; 649private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; 652private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; 657private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; 661private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; 670private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
DesignSurface (2)
MainForm.Designer.cs (2)
324private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; 328private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
System.Windows.Forms (20)
System\Windows\Forms\ContextMenuStrip.cs (1)
68if (item is ToolStripSeparator)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
56private readonly ToolStripSeparator _separator1; 57private readonly ToolStripSeparator _separator2; 1633private static ToolStripSeparator CreateSeparatorButton() 1635ToolStripSeparator button = new();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4299else if (placement == ToolStripItemPlacement.Overflow && !(item is ToolStripSeparator))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
323else if (item is not ToolStripSeparator)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (2)
84if (item is ToolStripSeparator) 109if (item is ToolStripSeparator)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
1454bool isSeparator = item is ToolStripSeparator;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.ToolStripSeparatorAccessibleObject.cs (2)
13private readonly ToolStripSeparator _ownerItem; 15public ToolStripSeparatorAccessibleObject(ToolStripSeparator ownerItem) : base(ownerItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparatorRenderEventArgs.cs (1)
16public ToolStripSeparatorRenderEventArgs(Graphics g, ToolStripSeparator separator, bool vertical)
System\Windows\Forms\DataBinding\BindingNavigator.cs (3)
141ToolStripSeparator separator1 = new(); 142ToolStripSeparator separator2 = new(); 143ToolStripSeparator separator3 = new();
System\Windows\Forms\Form.cs (1)
6289!(sourceMenuStrip.MdiWindowListItem.DropDownItems[nSubItems - 1] is ToolStripSeparator));
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
83ToolStripSeparator separator = new ToolStripSeparator
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
36private ToolStripSeparator _separatorToolStripSeparator; 42private ToolStripSeparator _separatorToolStripSeparator1;
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
137item = (ToolStripSeparator)_host.CreateComponent(typeof(ToolStripSeparator), name); 308item = (ToolStripSeparator)_host.CreateComponent(typeof(ToolStripSeparator), name);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
310ToolStripSeparator separator = new();
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
43[typeof(ToolStripButton), typeof(ToolStripLabel), typeof(ToolStripSplitButton), typeof(ToolStripDropDownButton), typeof(ToolStripSeparator), typeof(ToolStripComboBox), typeof(ToolStripTextBox), typeof(ToolStripProgressBar)]; 52[typeof(ToolStripMenuItem), typeof(ToolStripComboBox), typeof(ToolStripSeparator), typeof(ToolStripTextBox)]; 450selItem is ToolStripSeparator || selItem is ToolStripControlHost || !selItem.IsOnDropDown || selItem.IsOnOverflow)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
32private ToolStripSeparator _toolStripSeparator1; 118if (selectedItem is not ToolStripControlHost and not ToolStripSeparator) 638if (selectedItem is not ToolStripControlHost and not ToolStripSeparator)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
339&& type == typeof(ToolStripSeparator) 868if (newItem is ToolStripSeparator)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
461editedItem = itemDesigner.MorphCurrentItem(typeof(ToolStripSeparator));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
781ToolStripItemType = typeof(ToolStripSeparator);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\GroupedContextMenuStripTests.cs (1)
45groupedContextMenuStrip.Items[1].Should().BeOfType<ToolStripSeparator>();
System.Windows.Forms.Tests (57)
BindingNavigatorTests.cs (3)
117Assert.IsType<ToolStripSeparator>(bn.Items[index++]); 121Assert.IsType<ToolStripSeparator>(bn.Items[index++]); 125Assert.IsType<ToolStripSeparator>(bn.Items[index++]);
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (2)
139using ToolStripSeparator separator = new(); 179using ToolStripSeparator separator = new();
System\Windows\Forms\AccessibleObjects\ToolStripSeparator.ToolStripSeparatorAccessibleObjectTests.cs (5)
5using static System.Windows.Forms.ToolStripSeparator; 14using ToolStripSeparator toolStripSeparator = new(); 23using ToolStripSeparator toolStripSeparator = new(); 34using ToolStripSeparator toolStripSeparator = new(); 61using ToolStripSeparator toolStripSeparator = new();
System\Windows\Forms\MenuStripTests.cs (2)
468ToolStripSeparator separator = Assert.IsType<ToolStripSeparator>(control.CreateDefaultItem("-", image, onClick));
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2980ToolStripSeparator separator = Assert.IsType<ToolStripSeparator>(control.CreateDefaultItem("-", image, onClick));
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
22public void ToolStripSeparatorRenderEventArgs_Null_Graphics_ToolStripSeparator_ThrowsArgumentNullException(Graphics g, ToolStripSeparator toolStripSeparator) 37public void Ctor_Graphics_ToolStripItem_Bool(Graphics g, ToolStripSeparator separator, bool vertical)
System\Windows\Forms\ToolStripSeparatorTests.cs (39)
95using ToolStripSeparator item = new() 122using ToolStripSeparator item = new() 137using ToolStripSeparator item = new() 161using ToolStripSeparator item = new() 172using ToolStripSeparator item = new() 186using ToolStripSeparator item = new(); 221using ToolStripSeparator item = new(); 229using ToolStripSeparator item = new() 256using ToolStripSeparator item = new() 276using ToolStripSeparator item = new(); 320using ToolStripSeparator item = new() 337using ToolStripSeparator item = new() 351using ToolStripSeparator item = new(); 386PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)]; 387using ToolStripSeparator item = new(); 402PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripSeparator))[nameof(ToolStripSeparator.ForeColor)]; 403using ToolStripSeparator item = new(); 430using ToolStripSeparator item = new() 449using ToolStripSeparator item = new() 466using ToolStripSeparator item = new(); 476using ToolStripSeparator item = new() 495using ToolStripSeparator item = new() 514using ToolStripSeparator item = new() 540using ToolStripSeparator item = new() 557using ToolStripSeparator item = new() 576using ToolStripSeparator item = new() 590using ToolStripSeparator item = new(); 626using ToolStripSeparator item = new() 643using ToolStripSeparator item = new(); 659using ToolStripSeparator item = new() 674using ToolStripSeparator item = new(); 682using ToolStripSeparator item = new() 701using ToolStripSeparator item = new(); 709using ToolStripSeparator item = new() 756using ToolStripSeparator item = new(); 804using ToolStripSeparator item = new() 834using ToolStripSeparator item = new()
System\Windows\Forms\ToolStripTests.cs (2)
4298ToolStripSeparator separator = Assert.IsType<ToolStripSeparator>(control.CreateDefaultItem("-", image, onClick));
WinFormsControlsTest (3)
MenuStripAndCheckedListBox.Designer.cs (2)
307private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; 316private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
ToolStripSeparatorPreferredSize.cs (1)
102private ToolStripSeparator _toolStripSeparator1;