26 references to IsAutoGenerated
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1495if (dropDown is ToolStripOverflow || dropDown.IsAutoGenerated)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
365return IsAutoGenerated && OwnerItem is not null ? OwnerItem.Font : base.Font; 458return IsAutoGenerated || (_countDropDownItemsAssignedTo > 0); 464get => IsAutoGenerated && OwnerToolStrip is not null 1231if (IsAutoGenerated && OwnerItem is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (6)
366if (disposing && _dropDown.IsAutoGenerated) 460if (HasDropDown && DropDown.IsAutoGenerated) 527if (!DropDown.IsAutoGenerated) 708if (_dropDown.IsAutoGenerated && DropDownItems.Count <= 0) 732=> _dropDown is not null && !_dropDown.IsAutoGenerated; 738=> _dropDown is not null && _dropDown.IsAutoGenerated;
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\ToolStripDropDownItemDesigner.cs (1)
28if (Component is ToolStripDropDownItem item && item.DropDown.IsAutoGenerated)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
210return parentDropDown.IsAutoGenerated ? parentDropDown.OwnerItem : parentDropDown;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
630if (dropDown is not null && !dropDown.IsAutoGenerated)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (5)
87if (MenuItem.DropDown.IsAutoGenerated) 135if (MenuItem.DropDown.IsAutoGenerated && MenuItem.DropDownItems.Count > 0) 335if (dropDown.IsAutoGenerated) 2060if (_dropDownSet && MenuItem.DropDown.IsAutoGenerated) 2108if (!MenuItem.DropDown.IsAutoGenerated)
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripDropDownItemTests.cs (5)
337Assert.True(item.DropDown.IsAutoGenerated); 396Assert.True(item.DropDown.IsAutoGenerated); 416Assert.True(item.DropDown.IsAutoGenerated); 436Assert.True(item.DropDown.IsAutoGenerated); 453Assert.True(result.IsAutoGenerated);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
101Assert.False(control.IsAutoGenerated);
ToolStripDropDownMenuTests.cs (1)
26Assert.True(menu.IsAutoGenerated);