39 writes to AllowDrop
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
492menuItem.AllowDrop = AllowDrop;
System.Windows.Forms.Tests (34)
System\Windows\Forms\ToolStripControlHostTests.cs (8)
1393AllowDrop = allowDrop, 1461AllowDrop = allowDrop, 3063AllowDrop = allowDrop 3082AllowDrop = allowDrop, 3106AllowDrop = allowDrop 3179AllowDrop = allowDrop 3250AllowDrop = allowDrop 3271AllowDrop = allowDrop,
System\Windows\Forms\ToolStripItemTests.cs (23)
568AllowDrop = value 573item.AllowDrop = value; 577item.AllowDrop = !value; 589AllowDrop = value 596item.AllowDrop = value; 602item.AllowDrop = !value; 625item.AllowDrop = value; 634item.AllowDrop = value; 643item.AllowDrop = !value; 660AllowDrop = value 667item.AllowDrop = value; 673item.AllowDrop = !value; 696item.AllowDrop = value; 705item.AllowDrop = value; 714item.AllowDrop = !value; 734AllowDrop = value 739item.AllowDrop = value; 743item.AllowDrop = !value; 763Assert.Throws<InvalidOperationException>(() => item.AllowDrop = true); 771item.AllowDrop = false; 6971AllowDrop = allowDrop, 7027AllowDrop = allowDrop, 12546AllowDrop = allowDrop
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
272AllowDrop = true,
System\Windows\Forms\ToolStripTests.cs (2)
387AllowDrop = childAllowDrop 532AllowDrop = childAllowDrop
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1054AllowDrop = true,
WinFormsControlsTest (3)
DragDrop.cs (3)
473AllowDrop = true, 484AllowDrop = true, 495AllowDrop = true,
49 references to AllowDrop
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
34if (_owner.Items[i].AllowDrop) 71if ((item is not null) && (item.AllowDrop)) 112if ((item is not null) && (item.AllowDrop))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2899if (AllowDrop && (newParent is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
492menuItem.AllowDrop = AllowDrop;
System.Windows.Forms.Tests (44)
System\Windows\Forms\ToolStripButtonTests.cs (6)
25Assert.False(item.AllowDrop); 106Assert.False(item.AllowDrop); 193Assert.False(item.AllowDrop); 283Assert.False(item.AllowDrop); 372Assert.False(item.AllowDrop); 470Assert.False(item.AllowDrop);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
55Assert.False(item.AllowDrop);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
24Assert.False(item.AllowDrop); 114Assert.False(item.AllowDrop); 213Assert.False(item.AllowDrop); 313Assert.False(item.AllowDrop);
System\Windows\Forms\ToolStripItemTests.cs (23)
27Assert.False(item.AllowDrop); 113Assert.False(item.AllowDrop); 208Assert.False(item.AllowDrop); 570Assert.Equal(value, item.AllowDrop); 574Assert.Equal(value, item.AllowDrop); 578Assert.Equal(!value, item.AllowDrop); 591Assert.Equal(value, item.AllowDrop); 597Assert.Equal(value, item.AllowDrop); 603Assert.Equal(!value, item.AllowDrop); 626Assert.Equal(value, item.AllowDrop); 635Assert.Equal(value, item.AllowDrop); 644Assert.Equal(!value, item.AllowDrop); 662Assert.Equal(value, item.AllowDrop); 668Assert.Equal(value, item.AllowDrop); 674Assert.Equal(!value, item.AllowDrop); 697Assert.Equal(value, item.AllowDrop); 706Assert.Equal(value, item.AllowDrop); 715Assert.Equal(!value, item.AllowDrop); 736Assert.Equal(value, item.AllowDrop); 740Assert.Equal(value, item.AllowDrop); 744Assert.Equal(!value, item.AllowDrop); 764Assert.False(item.AllowDrop); 772Assert.False(item.AllowDrop);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
25Assert.False(item.AllowDrop); 317clone.AllowDrop.Should().Be(original.AllowDrop);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
25Assert.False(item.AllowDrop);
System\Windows\Forms\ToolStripTests.cs (6)
393Assert.Equal(childAllowDrop, item.AllowDrop); 399Assert.Equal(childAllowDrop, item.AllowDrop); 405Assert.Equal(childAllowDrop, item.AllowDrop); 545Assert.Equal(childAllowDrop, item.AllowDrop); 554Assert.Equal(childAllowDrop, item.AllowDrop); 563Assert.Equal(childAllowDrop, item.AllowDrop);