28 references to ColumnHeaderAutoResizeStyle
System.Windows.Forms (17)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (5)
414
ListView?.SetColumnWidth(Index,
ColumnHeaderAutoResizeStyle
.None);
418
public void AutoResize(
ColumnHeaderAutoResizeStyle
headerAutoResize)
420
if (headerAutoResize is <
ColumnHeaderAutoResizeStyle
.None or >
ColumnHeaderAutoResizeStyle
.ColumnContent)
422
throw new InvalidEnumArgumentException(nameof(headerAutoResize), (int)headerAutoResize, typeof(
ColumnHeaderAutoResizeStyle
));
System\Windows\Forms\Controls\ListView\ListView.cs (12)
2321
public void AutoResizeColumns(
ColumnHeaderAutoResizeStyle
headerAutoResize)
2331
public void AutoResizeColumn(int columnIndex,
ColumnHeaderAutoResizeStyle
headerAutoResize)
4629
UpdateColumnWidths(
ColumnHeaderAutoResizeStyle
.None);
5255
internal void SetColumnWidth(int columnIndex,
ColumnHeaderAutoResizeStyle
headerAutoResize)
5265
if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.None)
5273
headerAutoResize =
ColumnHeaderAutoResizeStyle
.HeaderSize;
5277
headerAutoResize =
ColumnHeaderAutoResizeStyle
.ColumnContent;
5281
if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.HeaderSize)
5286
else if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.ColumnContent)
5298
(headerAutoResize ==
ColumnHeaderAutoResizeStyle
.ColumnContent ||
5299
headerAutoResize ==
ColumnHeaderAutoResizeStyle
.HeaderSize))
5601
private void UpdateColumnWidths(
ColumnHeaderAutoResizeStyle
headerAutoResize)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
480
_columnsAndRowsListView.AutoResizeColumns(
ColumnHeaderAutoResizeStyle
.HeaderSize);
System.Windows.Forms.Tests (8)
System\Windows\Forms\ColumnHeaderTests.cs (8)
1384
[EnumData<
ColumnHeaderAutoResizeStyle
>]
1385
public void ColumnHeader_AutoSize_WithoutListView_Nop(
ColumnHeaderAutoResizeStyle
headerAutoResize)
1397
[EnumData<
ColumnHeaderAutoResizeStyle
>]
1398
public void ColumnHeader_AutoSize_WithListView_Success(
ColumnHeaderAutoResizeStyle
headerAutoResize)
1415
[EnumData<
ColumnHeaderAutoResizeStyle
>]
1416
public void ColumnHeader_AutoSize_WithListViewWithHandle_Success(
ColumnHeaderAutoResizeStyle
headerAutoResize)
1446
[InvalidEnumData<
ColumnHeaderAutoResizeStyle
>]
1447
public void ColumnHeader_AutoSize_InvalidHeaderAutoResize_ThrowsInvalidEnumArgumentException(
ColumnHeaderAutoResizeStyle
headerAutoResize)
WinFormsControlsTest (2)
ListViewTest.cs (1)
123
listView2.AutoResizeColumns(
ColumnHeaderAutoResizeStyle
.HeaderSize);
MultipleControls.cs (1)
85
listView2.AutoResizeColumns(
ColumnHeaderAutoResizeStyle
.HeaderSize);