18 writes to TextAlign
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
414set => base.TextAlign = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
528menuItem.TextAlign = TextAlign;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
214set => base.TextAlign = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
234_splitButtonButton.TextAlign = TextAlign;
System.Windows.Forms.Tests (14)
System\Windows\Forms\ToolStripButtonTests.cs (2)
1281TextAlign = textAlign, 1372TextAlign = textAlign,
System\Windows\Forms\ToolStripItemTests.cs (11)
8292TextAlign = value 8297item.TextAlign = value; 8331item.TextAlign = value; 8337item.TextAlign = value; 8385item.TextAlign = value; 8394item.TextAlign = value; 8423item.TextAlign = value; 8429item.TextAlign = value; 8462item.TextAlign = value; 8471item.TextAlign = value; 8492Assert.Throws<InvalidEnumArgumentException>("value", () => item.TextAlign = value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
303TextAlign = ContentAlignment.BottomRight,
32 references to TextAlign
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
413get => base.TextAlign;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (2)
116layoutOptions.TextAlign = Owner.TextAlign; 126layoutOptions.GdiTextFormatFlags = ContentAlignmentToTextFormat(Owner.TextAlign, Owner.RightToLeft == RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
528menuItem.TextAlign = TextAlign;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
213get => base.TextAlign;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
234_splitButtonButton.TextAlign = TextAlign;
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
86Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 167Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 254Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 344Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 432Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 530Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
86Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 175Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 274Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 382Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign);
System\Windows\Forms\ToolStripItemTests.cs (13)
85Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 170Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 265Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 8294Assert.Equal(value, item.TextAlign); 8298Assert.Equal(value, item.TextAlign); 8332Assert.Equal(value, item.TextAlign); 8338Assert.Equal(value, item.TextAlign); 8386Assert.Equal(value, item.TextAlign); 8395Assert.Equal(value, item.TextAlign); 8424Assert.Equal(value, item.TextAlign); 8430Assert.Equal(value, item.TextAlign); 8463Assert.Equal(value, item.TextAlign); 8472Assert.Equal(value, item.TextAlign);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
95Assert.Equal(ContentAlignment.MiddleCenter, item.TextAlign); 348clone.TextAlign.Should().Be(original.TextAlign);