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