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)
341AllowDrop = true
System\Windows\Forms\ToolStripItemTests.cs (1)
731AllowDrop = true
System\Windows\Forms\ToolStripTests.cs (20)
363AllowDrop = value 369control.AllowDrop = value; 374control.AllowDrop = value; 393control.AllowDrop = value; 399control.AllowDrop = value; 405control.AllowDrop = value; 424control.AllowDrop = value; 432control.AllowDrop = value; 440control.AllowDrop = value; 467control.AllowDrop = value; 475control.AllowDrop = value; 483control.AllowDrop = value; 508Assert.Throws<InvalidOperationException>(() => control.AllowDrop = true); 516control.AllowDrop = false; 545control.AllowDrop = value; 554control.AllowDrop = value; 563control.AllowDrop = value; 579Assert.Throws<ArgumentException>(() => control.AllowDrop = true); 582control.AllowDrop = false; 678AllowDrop = 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)
305if (AllowDrop && value) 3176if ((AllowDrop || AllowItemReorder) && (DropTargetManager is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
42if (_owner.AllowDrop || _owner.AllowItemReorder) 77else if (_owner.AllowDrop) 118else 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)
23Assert.False(control.AllowDrop);
System\Windows\Forms\StatusStripTests.cs (1)
23Assert.False(control.AllowDrop);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
25Assert.False(control.AllowDrop);
System\Windows\Forms\ToolStripItemTests.cs (12)
594Assert.False(owner.AllowDrop); 600Assert.False(owner.AllowDrop); 606Assert.False(owner.AllowDrop); 629Assert.False(owner.AllowDrop); 638Assert.False(owner.AllowDrop); 647Assert.False(owner.AllowDrop); 665Assert.False(parent.AllowDrop); 671Assert.False(parent.AllowDrop); 677Assert.False(parent.AllowDrop); 700Assert.False(parent.AllowDrop); 709Assert.False(parent.AllowDrop); 718Assert.False(parent.AllowDrop);
System\Windows\Forms\ToolStripTests.cs (21)
27Assert.False(control.AllowDrop); 185Assert.False(control.AllowDrop); 365Assert.Equal(value, control.AllowDrop); 370Assert.Equal(value, control.AllowDrop); 375Assert.Equal(value, control.AllowDrop); 394Assert.Equal(value, control.AllowDrop); 400Assert.Equal(value, control.AllowDrop); 406Assert.Equal(value, control.AllowDrop); 425Assert.Equal(value, control.AllowDrop); 433Assert.Equal(value, control.AllowDrop); 441Assert.Equal(value, control.AllowDrop); 468Assert.Equal(value, control.AllowDrop); 476Assert.Equal(value, control.AllowDrop); 484Assert.Equal(value, control.AllowDrop); 509Assert.False(control.AllowDrop); 517Assert.False(control.AllowDrop); 546Assert.Equal(value, control.AllowDrop); 555Assert.Equal(value, control.AllowDrop); 564Assert.Equal(value, control.AllowDrop); 580Assert.False(control.AllowDrop); 583Assert.False(control.AllowDrop);