18 writes to TextAlign
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (6)
179TextAlign = textAlign 240TextAlign = textAlign 252TextAlign = textAlign 422TextAlign = textAlign 476TextAlign = textAlign 488TextAlign = textAlign
System.Windows.Forms.Tests (12)
System\Windows\Forms\ColumnHeaderTests.cs (11)
1111TextAlign = value 1116header.TextAlign = value; 1135listView.Columns[columnIndex].TextAlign = value; 1140listView.Columns[columnIndex].TextAlign = value; 1167listView.Columns[columnIndex].TextAlign = value; 1175listView.Columns[columnIndex].TextAlign = value; 1199listView.Columns[columnIndex].TextAlign = value; 1213Assert.Throws<InvalidEnumArgumentException>("value", () => header.TextAlign = value); 1469TextAlign = HorizontalAlignment.Center, 1506TextAlign = HorizontalAlignment.Center, 1544TextAlign = HorizontalAlignment.Center,
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
89ColumnHeader header = new() { TextAlign = textAlign };
29 references to TextAlign
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
447columnHeader._textAlign = TextAlign;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
127HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.Left;
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
123HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.Left;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
3912lvColumn.fmt = (LVCOLUMNW_FORMAT)ch.TextAlign; 5214lvColumn.fmt |= (LVCOLUMNW_FORMAT)ch.TextAlign;
System.Windows.Forms.Tests (24)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (6)
214Assert.Equal(textAlign, header.TextAlign); 283Assert.Equal(textAlign, header.TextAlign); 308Assert.Equal(textAlign, header.TextAlign); 749Assert.Equal(textAlign, header.TextAlign); 791Assert.Equal(textAlign, header.TextAlign); 807Assert.Equal(textAlign, header.TextAlign);
System\Windows\Forms\ColumnHeaderTests.cs (18)
31Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 57Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 81Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 1037Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1038Assert.Equal(expected, header2.TextAlign); 1041Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1042Assert.Equal(expected, header2.TextAlign); 1047Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1048Assert.Equal(expected, header2.TextAlign); 1113Assert.Equal(value, header.TextAlign); 1117Assert.Equal(value, header.TextAlign); 1136Assert.Equal(expected, listView.Columns[columnIndex].TextAlign); 1141Assert.Equal(expected, listView.Columns[columnIndex].TextAlign); 1168Assert.Equal(expected, listView.Columns[columnIndex].TextAlign); 1176Assert.Equal(expected, listView.Columns[columnIndex].TextAlign); 1485Assert.Equal(HorizontalAlignment.Center, header.TextAlign); 1524Assert.Equal(HorizontalAlignment.Center, header.TextAlign); 1564Assert.Equal(HorizontalAlignment.Center, header.TextAlign);