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