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