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