14 writes to AllowItemReorder
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
60
set => base.
AllowItemReorder
= value;
System.Windows.Forms.Tests (13)
System\Windows\Forms\ToolStripItemTests.cs (2)
10189
AllowItemReorder
= true
10220
AllowItemReorder
= true
System\Windows\Forms\ToolStripTests.cs (11)
575
AllowItemReorder
= true
590
AllowItemReorder
= value
596
control.
AllowItemReorder
= value;
601
control.
AllowItemReorder
= value;
618
Assert.Throws<InvalidOperationException>(() => control.
AllowItemReorder
= true);
626
control.
AllowItemReorder
= false;
647
control.
AllowItemReorder
= value;
655
control.
AllowItemReorder
= value;
663
control.
AllowItemReorder
= value;
678
Assert.Throws<ArgumentException>(() => control.
AllowItemReorder
= true);
681
control.
AllowItemReorder
= false;
22 references to AllowItemReorder
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
274
if (value &&
AllowItemReorder
)
3177
if ((AllowDrop ||
AllowItemReorder
) && (DropTargetManager is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
59
get => base.
AllowItemReorder
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
41
if (_owner.AllowDrop || _owner.
AllowItemReorder
)
63
if (_owner.
AllowItemReorder
&& e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem)))
104
if (_owner.
AllowItemReorder
&& e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem)))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2057
if (ParentInternal is not null && ParentInternal.Items.Contains(this) && ParentInternal.
AllowItemReorder
)
2220
=> ParentInternal is not null && ParentInternal.
AllowItemReorder
&& ParentInternal.ItemReorderDropSource is not null
System.Windows.Forms.Tests (14)
System\Windows\Forms\MenuStripTests.cs (1)
22
Assert.False(control.
AllowItemReorder
);
System\Windows\Forms\StatusStripTests.cs (1)
22
Assert.False(control.
AllowItemReorder
);
System\Windows\Forms\ToolStripTests.cs (12)
26
Assert.False(control.
AllowItemReorder
);
184
Assert.False(control.
AllowItemReorder
);
592
Assert.Equal(value, control.
AllowItemReorder
);
597
Assert.Equal(value, control.
AllowItemReorder
);
602
Assert.Equal(value, control.
AllowItemReorder
);
619
Assert.True(control.
AllowItemReorder
);
627
Assert.False(control.
AllowItemReorder
);
648
Assert.Equal(value, control.
AllowItemReorder
);
656
Assert.Equal(value, control.
AllowItemReorder
);
664
Assert.Equal(value, control.
AllowItemReorder
);
679
Assert.False(control.
AllowItemReorder
);
682
Assert.False(control.
AllowItemReorder
);