94 writes to Alignment
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1363Alignment = ToolStripItemAlignment.Right
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
491menuItem.Alignment = Alignment;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
82droppedItem.Alignment = item.Alignment;
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
80set => base.Alignment = value;
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
54item.Alignment = ToolStripItemAlignment.Right; 64_system.Alignment = ToolStripItemAlignment.Left;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
906_pageToolStripLabel.Alignment = ToolStripItemAlignment.Right; 960_pageCounterItem.Alignment = ToolStripItemAlignment.Right;
System.Windows.Forms.Tests (84)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (22)
394menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 410menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 428menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 446menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 462menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 463menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 479menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 480menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 625menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 641menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 658menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 660menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 663menuStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 680menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 682menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 685menuStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 701menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 702menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 718menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 719menuStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 863menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 888menuStrip.Items[0].Alignment = ToolStripItemAlignment.Right;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (22)
374statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 390statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 408statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 426statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 442statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 443statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 459statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 460statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 605statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 621statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 638statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 640statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 643statusStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 660statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 662statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 665statusStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 681statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 682statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 698statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 699statusStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 843statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 869statusStrip.Items[0].Alignment = ToolStripItemAlignment.Right;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (22)
387toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 403toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 421toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 439toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 455toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 456toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 472toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 473toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 618toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 634toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 651toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 653toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 656toolStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 673toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 675toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 678toolStrip.Items[3].Alignment = ToolStripItemAlignment.Right; 694toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 695toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 711toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 712toolStrip.Items[1].Alignment = ToolStripItemAlignment.Right; 856toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 881toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right;
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (2)
288toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 323toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (3)
140toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 170toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 218Alignment = align
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
126item1.Alignment = ToolStripItemAlignment.Right;
System\Windows\Forms\ToolStripItemTests.cs (11)
382item.Alignment = value; 386item.Alignment = value; 412item.Alignment = value; 418item.Alignment = value; 454item.Alignment = value; 463item.Alignment = value; 492item.Alignment = value; 498item.Alignment = value; 531item.Alignment = value; 540item.Alignment = value; 559Assert.Throws<InvalidEnumArgumentException>("value", () => item.Alignment = value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
271Alignment = ToolStripItemAlignment.Right,
WinFormsControlsTest (2)
MdiChild.cs (1)
19Alignment = ToolStripItemAlignment.Right,
MdiParent.cs (1)
37Alignment = i < 4 ? ToolStripItemAlignment.Left : ToolStripItemAlignment.Right,
45 references to Alignment
System.Windows.Forms (17)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4279addItem = (item.Alignment == ToolStripItemAlignment.Left); 4289addItem = (item.Alignment == ToolStripItemAlignment.Right);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (4)
65if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Left) 82if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Right) 350if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Left) 364if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
491menuItem.Alignment = Alignment;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (6)
82droppedItem.Alignment = item.Alignment; 89insertIndex = (item.Alignment == ToolStripItemAlignment.Left) ? insertIndex : insertIndex + 1; 93insertIndex = (item.Alignment == ToolStripItemAlignment.Left) ? insertIndex : insertIndex - 1; 95else if (((item.Alignment == ToolStripItemAlignment.Left) && (relativeLocation == RelativeLocation.Left)) || 96((item.Alignment == ToolStripItemAlignment.Right) && (relativeLocation == RelativeLocation.Right))) 187if (_owner.DisplayedItems[i].Alignment == ToolStripItemAlignment.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
291if (((item.Alignment == ToolStripItemAlignment.Right) && (toolStrip.RightToLeft == RightToLeft.No)) || ((item.Alignment == ToolStripItemAlignment.Left) && (toolStrip.RightToLeft == RightToLeft.Yes))) 433switch (item.Alignment)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
79get => base.Alignment;
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripButtonTests.cs (6)
24Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 105Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 192Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 282Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 371Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 469Assert.Equal(ToolStripItemAlignment.Left, item.Alignment);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
54Assert.Equal(ToolStripItemAlignment.Left, item.Alignment);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
23Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 113Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 212Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 312Assert.Equal(ToolStripItemAlignment.Left, item.Alignment);
System\Windows\Forms\ToolStripItemTests.cs (13)
26Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 112Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 207Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 383Assert.Equal(value, item.Alignment); 387Assert.Equal(value, item.Alignment); 413Assert.Equal(value, item.Alignment); 419Assert.Equal(value, item.Alignment); 455Assert.Equal(value, item.Alignment); 464Assert.Equal(value, item.Alignment); 493Assert.Equal(value, item.Alignment); 499Assert.Equal(value, item.Alignment); 532Assert.Equal(value, item.Alignment); 541Assert.Equal(value, item.Alignment);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
24Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 316clone.Alignment.Should().Be(original.Alignment);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
24Assert.Equal(ToolStripItemAlignment.Left, item.Alignment);