Base:
property
AllowDrop
System.Windows.Forms.Control.AllowDrop
25 writes to AllowDrop
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1599MenuItem.DropDown.AllowDrop = true;
System.Windows.Forms.Tests (22)
System\Windows\Forms\ToolStripDropDownTests.cs (1)
339AllowDrop = true
System\Windows\Forms\ToolStripItemTests.cs (1)
729AllowDrop = true
System\Windows\Forms\ToolStripTests.cs (20)
361AllowDrop = value 367control.AllowDrop = value; 372control.AllowDrop = value; 391control.AllowDrop = value; 397control.AllowDrop = value; 403control.AllowDrop = value; 422control.AllowDrop = value; 430control.AllowDrop = value; 438control.AllowDrop = value; 465control.AllowDrop = value; 473control.AllowDrop = value; 481control.AllowDrop = value; 506Assert.Throws<InvalidOperationException>(() => control.AllowDrop = true); 514control.AllowDrop = false; 543control.AllowDrop = value; 552control.AllowDrop = value; 561control.AllowDrop = value; 577Assert.Throws<ArgumentException>(() => control.AllowDrop = true); 580control.AllowDrop = false; 676AllowDrop = true
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1010AllowDrop = true,
WinFormsControlsTest (1)
DragDrop.cs (1)
432AllowDrop = true,
42 references to AllowDrop
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
306if (AllowDrop && value) 3177if ((AllowDrop || AllowItemReorder) && (DropTargetManager is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
41if (_owner.AllowDrop || _owner.AllowItemReorder) 76else if (_owner.AllowDrop) 117else if (_owner.AllowDrop)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
365AllowDrop = _dropDown.AllowDrop;
System.Windows.Forms.Tests (36)
System\Windows\Forms\MenuStripTests.cs (1)
21Assert.False(control.AllowDrop);
System\Windows\Forms\StatusStripTests.cs (1)
21Assert.False(control.AllowDrop);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
23Assert.False(control.AllowDrop);
System\Windows\Forms\ToolStripItemTests.cs (12)
592Assert.False(owner.AllowDrop); 598Assert.False(owner.AllowDrop); 604Assert.False(owner.AllowDrop); 627Assert.False(owner.AllowDrop); 636Assert.False(owner.AllowDrop); 645Assert.False(owner.AllowDrop); 663Assert.False(parent.AllowDrop); 669Assert.False(parent.AllowDrop); 675Assert.False(parent.AllowDrop); 698Assert.False(parent.AllowDrop); 707Assert.False(parent.AllowDrop); 716Assert.False(parent.AllowDrop);
System\Windows\Forms\ToolStripTests.cs (21)
25Assert.False(control.AllowDrop); 183Assert.False(control.AllowDrop); 363Assert.Equal(value, control.AllowDrop); 368Assert.Equal(value, control.AllowDrop); 373Assert.Equal(value, control.AllowDrop); 392Assert.Equal(value, control.AllowDrop); 398Assert.Equal(value, control.AllowDrop); 404Assert.Equal(value, control.AllowDrop); 423Assert.Equal(value, control.AllowDrop); 431Assert.Equal(value, control.AllowDrop); 439Assert.Equal(value, control.AllowDrop); 466Assert.Equal(value, control.AllowDrop); 474Assert.Equal(value, control.AllowDrop); 482Assert.Equal(value, control.AllowDrop); 507Assert.False(control.AllowDrop); 515Assert.False(control.AllowDrop); 544Assert.Equal(value, control.AllowDrop); 553Assert.Equal(value, control.AllowDrop); 562Assert.Equal(value, control.AllowDrop); 578Assert.False(control.AllowDrop); 581Assert.False(control.AllowDrop);