94 writes to Alignment
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1361
Alignment
= ToolStripItemAlignment.Right
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
491
menuItem.
Alignment
= Alignment;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
82
droppedItem.
Alignment
= item.Alignment;
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
80
set => base.
Alignment
= value;
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.Tests (84)
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 (3)
140
toolStrip.Items[0].
Alignment
= ToolStripItemAlignment.Right;
170
toolStrip.Items[0].
Alignment
= ToolStripItemAlignment.Right;
218
Alignment
= align
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
126
item1.
Alignment
= ToolStripItemAlignment.Right;
System\Windows\Forms\ToolStripItemTests.cs (11)
382
item.
Alignment
= value;
386
item.
Alignment
= value;
412
item.
Alignment
= value;
418
item.
Alignment
= value;
454
item.
Alignment
= value;
463
item.
Alignment
= value;
492
item.
Alignment
= value;
498
item.
Alignment
= value;
531
item.
Alignment
= value;
540
item.
Alignment
= value;
559
Assert.Throws<InvalidEnumArgumentException>("value", () => item.
Alignment
= value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
271
Alignment
= ToolStripItemAlignment.Right,
WinFormsControlsTest (2)
MdiChild.cs (1)
19
Alignment
= ToolStripItemAlignment.Right,
MdiParent.cs (1)
37
Alignment
= i < 4 ? ToolStripItemAlignment.Left : ToolStripItemAlignment.Right,
45 references to Alignment
System.Windows.Forms (17)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4279
addItem = (item.
Alignment
== ToolStripItemAlignment.Left);
4289
addItem = (item.
Alignment
== ToolStripItemAlignment.Right);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (4)
64
if (owner.Items[i].Available && owner.Items[i].
Alignment
== ToolStripItemAlignment.Left)
81
if (owner.Items[i].Available && owner.Items[i].
Alignment
== ToolStripItemAlignment.Right)
349
if (owner.Items[i].Available && owner.Items[i].
Alignment
== ToolStripItemAlignment.Left)
363
if (owner.Items[i].Available && owner.Items[i].
Alignment
== ToolStripItemAlignment.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
491
menuItem.Alignment =
Alignment
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (6)
82
droppedItem.Alignment = item.
Alignment
;
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 (3)
291
if (((item.
Alignment
== ToolStripItemAlignment.Right) && (toolStrip.RightToLeft == RightToLeft.No)) || ((item.
Alignment
== ToolStripItemAlignment.Left) && (toolStrip.RightToLeft == RightToLeft.Yes)))
433
switch (item.
Alignment
)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
79
get => base.
Alignment
;
System.Windows.Forms.Tests (28)
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 (13)
26
Assert.Equal(ToolStripItemAlignment.Left, item.
Alignment
);
112
Assert.Equal(ToolStripItemAlignment.Left, item.
Alignment
);
207
Assert.Equal(ToolStripItemAlignment.Left, item.
Alignment
);
383
Assert.Equal(value, item.
Alignment
);
387
Assert.Equal(value, item.
Alignment
);
413
Assert.Equal(value, item.
Alignment
);
419
Assert.Equal(value, item.
Alignment
);
455
Assert.Equal(value, item.
Alignment
);
464
Assert.Equal(value, item.
Alignment
);
493
Assert.Equal(value, item.
Alignment
);
499
Assert.Equal(value, item.
Alignment
);
532
Assert.Equal(value, item.
Alignment
);
541
Assert.Equal(value, item.
Alignment
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
24
Assert.Equal(ToolStripItemAlignment.Left, item.
Alignment
);
316
clone.
Alignment
.Should().Be(original.
Alignment
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
24
Assert.Equal(ToolStripItemAlignment.Left, item.
Alignment
);