140 references to ToolStripItemAlignment
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1361Alignment = ToolStripItemAlignment.Right 4279addItem = (item.Alignment == ToolStripItemAlignment.Left); 4289addItem = (item.Alignment == ToolStripItemAlignment.Right);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (4)
64if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Left) 81if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Right) 349if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Left) 363if (owner.Items[i].Available && owner.Items[i].Alignment == ToolStripItemAlignment.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
31private ToolStripItemAlignment _alignment = ToolStripItemAlignment.Left; 276[DefaultValue(ToolStripItemAlignment.Left)] 279public ToolStripItemAlignment Alignment
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (5)
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 (4)
291if (((item.Alignment == ToolStripItemAlignment.Right) && (toolStrip.RightToLeft == RightToLeft.No)) || ((item.Alignment == ToolStripItemAlignment.Left) && (toolStrip.RightToLeft == RightToLeft.Yes))) 435case ToolStripItemAlignment.Right: 442case ToolStripItemAlignment.Left:
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
77public new ToolStripItemAlignment Alignment
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.Design (6)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (6)
152_leftToolStripMenuItem = CreateEnumValueItem("Alignment", "Left", ToolStripItemAlignment.Left); 153_rightToolStripMenuItem = CreateEnumValueItem("Alignment", "Right", ToolStripItemAlignment.Right); 620ToolStripItemAlignment currentAlignmentValue = (ToolStripItemAlignment)GetProperty("Alignment"); 621_leftToolStripMenuItem.Checked = currentAlignmentValue == ToolStripItemAlignment.Left; 622_rightToolStripMenuItem.Checked = currentAlignmentValue == ToolStripItemAlignment.Right;
System.Windows.Forms.Tests (106)
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 (4)
140toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 170toolStrip.Items[0].Alignment = ToolStripItemAlignment.Right; 207toolStrip.Items.Add(CreateItem(ToolStripItemAlignment.Left)); 212static ToolStripItem CreateItem(ToolStripItemAlignment align)
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
126item1.Alignment = ToolStripItemAlignment.Right;
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 (16)
26Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 112Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 207Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 377[EnumData<ToolStripItemAlignment>] 378public void ToolStripItem_Alignment_Set_GetReturnsExpected(ToolStripItemAlignment value) 401[EnumData<ToolStripItemAlignment>] 402public void ToolStripItem_Alignment_SetWithParent_GetReturnsExpected(ToolStripItemAlignment value) 425[InlineData(ToolStripItemAlignment.Left, 0)] 426[InlineData(ToolStripItemAlignment.Right, 1)] 427public void ToolStripItem_Alignment_SetWithParentWithHandle_GetReturnsExpected(ToolStripItemAlignment value, int expectedParentLayoutCallCount) 478[EnumData<ToolStripItemAlignment>] 479public void ToolStripItem_Alignment_SetWithOwner_GetReturnsExpected(ToolStripItemAlignment value) 510[EnumData<ToolStripItemAlignment>] 511public void ToolStripItem_Alignment_SetWithOwnerWithHandle_GetReturnsExpected(ToolStripItemAlignment value) 555[InvalidEnumData<ToolStripItemAlignment>] 556public void ToolStripItem_Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(ToolStripItemAlignment value)
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
24Assert.Equal(ToolStripItemAlignment.Left, item.Alignment); 271Alignment = ToolStripItemAlignment.Right,
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
24Assert.Equal(ToolStripItemAlignment.Left, item.Alignment);
System\Windows\Forms\ToolStripStatusLabelTests.cs (3)
86[InlineData(ToolStripItemAlignment.Right)] 87[InlineData(ToolStripItemAlignment.Left)] 88public void ToolStripStatusLabel_AlignmentProperty_SetAndGet_ReturnsExpected(ToolStripItemAlignment alignment)
WinFormsControlsTest (3)
MdiChild.cs (1)
19Alignment = ToolStripItemAlignment.Right,
MdiParent.cs (2)
37Alignment = i < 4 ? ToolStripItemAlignment.Left : ToolStripItemAlignment.Right,