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