140 references to ToolStripItemAlignment
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1363
Alignment =
ToolStripItemAlignment
.Right
4278
addItem = (item.Alignment ==
ToolStripItemAlignment
.Left);
4288
addItem = (item.Alignment ==
ToolStripItemAlignment
.Right);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (4)
65
if (owner.Items[i].Available && owner.Items[i].Alignment ==
ToolStripItemAlignment
.Left)
82
if (owner.Items[i].Available && owner.Items[i].Alignment ==
ToolStripItemAlignment
.Right)
350
if (owner.Items[i].Available && owner.Items[i].Alignment ==
ToolStripItemAlignment
.Left)
364
if (owner.Items[i].Available && owner.Items[i].Alignment ==
ToolStripItemAlignment
.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
31
private
ToolStripItemAlignment
_alignment =
ToolStripItemAlignment
.Left;
276
[DefaultValue(
ToolStripItemAlignment
.Left)]
279
public
ToolStripItemAlignment
Alignment
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (5)
89
insertIndex = (item.Alignment ==
ToolStripItemAlignment
.Left) ? insertIndex : insertIndex + 1;
93
insertIndex = (item.Alignment ==
ToolStripItemAlignment
.Left) ? insertIndex : insertIndex - 1;
95
else if (((item.Alignment ==
ToolStripItemAlignment
.Left) && (relativeLocation == RelativeLocation.Left)) ||
96
((item.Alignment ==
ToolStripItemAlignment
.Right) && (relativeLocation == RelativeLocation.Right)))
187
if (_owner.DisplayedItems[i].Alignment ==
ToolStripItemAlignment
.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
291
if (((item.Alignment ==
ToolStripItemAlignment
.Right) && (toolStrip.RightToLeft == RightToLeft.No)) || ((item.Alignment ==
ToolStripItemAlignment
.Left) && (toolStrip.RightToLeft == RightToLeft.Yes)))
435
case
ToolStripItemAlignment
.Right:
442
case
ToolStripItemAlignment
.Left:
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
77
public new
ToolStripItemAlignment
Alignment
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
54
item.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);
620
ToolStripItemAlignment
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)
394
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
410
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
428
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
446
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
462
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
463
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
479
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
480
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
625
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
641
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
658
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
660
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
663
menuStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
680
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
682
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
685
menuStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
701
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
702
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
718
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
719
menuStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
863
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
888
menuStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (22)
374
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
390
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
408
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
426
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
442
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
443
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
459
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
460
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
605
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
621
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
638
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
640
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
643
statusStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
660
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
662
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
665
statusStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
681
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
682
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
698
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
699
statusStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
843
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
869
statusStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (22)
387
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
403
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
421
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
439
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
455
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
456
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
472
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
473
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
618
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
634
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
651
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
653
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
656
toolStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
673
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
675
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
678
toolStrip.Items[3].Alignment =
ToolStripItemAlignment
.Right;
694
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
695
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
711
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
712
toolStrip.Items[1].Alignment =
ToolStripItemAlignment
.Right;
856
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
881
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (2)
288
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
323
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (4)
140
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
170
toolStrip.Items[0].Alignment =
ToolStripItemAlignment
.Right;
207
toolStrip.Items.Add(CreateItem(
ToolStripItemAlignment
.Left));
212
ToolStripItem CreateItem(
ToolStripItemAlignment
align)
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
126
item1.Alignment =
ToolStripItemAlignment
.Right;
System\Windows\Forms\ToolStripButtonTests.cs (6)
24
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
105
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
192
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
282
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
371
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
469
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
54
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
23
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
113
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
212
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
312
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
System\Windows\Forms\ToolStripItemTests.cs (16)
26
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
112
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
207
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
377
[EnumData<
ToolStripItemAlignment
>]
378
public void ToolStripItem_Alignment_Set_GetReturnsExpected(
ToolStripItemAlignment
value)
401
[EnumData<
ToolStripItemAlignment
>]
402
public void ToolStripItem_Alignment_SetWithParent_GetReturnsExpected(
ToolStripItemAlignment
value)
425
[InlineData(
ToolStripItemAlignment
.Left, 0)]
426
[InlineData(
ToolStripItemAlignment
.Right, 1)]
427
public void ToolStripItem_Alignment_SetWithParentWithHandle_GetReturnsExpected(
ToolStripItemAlignment
value, int expectedParentLayoutCallCount)
478
[EnumData<
ToolStripItemAlignment
>]
479
public void ToolStripItem_Alignment_SetWithOwner_GetReturnsExpected(
ToolStripItemAlignment
value)
510
[EnumData<
ToolStripItemAlignment
>]
511
public void ToolStripItem_Alignment_SetWithOwnerWithHandle_GetReturnsExpected(
ToolStripItemAlignment
value)
555
[InvalidEnumData<
ToolStripItemAlignment
>]
556
public void ToolStripItem_Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(
ToolStripItemAlignment
value)
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
24
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
271
Alignment =
ToolStripItemAlignment
.Right,
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
24
Assert.Equal(
ToolStripItemAlignment
.Left, item.Alignment);
System\Windows\Forms\ToolStripStatusLabelTests.cs (3)
86
[InlineData(
ToolStripItemAlignment
.Right)]
87
[InlineData(
ToolStripItemAlignment
.Left)]
88
public void ToolStripStatusLabel_AlignmentProperty_SetAndGet_ReturnsExpected(
ToolStripItemAlignment
alignment)
WinFormsControlsTest (3)
MdiChild.cs (1)
19
Alignment =
ToolStripItemAlignment
.Right,
MdiParent.cs (2)
37
Alignment = i < 4 ?
ToolStripItemAlignment
.Left :
ToolStripItemAlignment
.Right,