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)
2317
public void AutoResizeColumns(
ColumnHeaderAutoResizeStyle
headerAutoResize)
2327
public void AutoResizeColumn(int columnIndex,
ColumnHeaderAutoResizeStyle
headerAutoResize)
4625
UpdateColumnWidths(
ColumnHeaderAutoResizeStyle
.None);
5251
internal void SetColumnWidth(int columnIndex,
ColumnHeaderAutoResizeStyle
headerAutoResize)
5261
if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.None)
5269
headerAutoResize =
ColumnHeaderAutoResizeStyle
.HeaderSize;
5273
headerAutoResize =
ColumnHeaderAutoResizeStyle
.ColumnContent;
5277
if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.HeaderSize)
5282
else if (headerAutoResize ==
ColumnHeaderAutoResizeStyle
.ColumnContent)
5294
(headerAutoResize ==
ColumnHeaderAutoResizeStyle
.ColumnContent ||
5295
headerAutoResize ==
ColumnHeaderAutoResizeStyle
.HeaderSize))
5597
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);