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