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