30 instantiations of DataGridViewAutoSizeModeEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
973
DataGridViewAutoSizeModeEventArgs dgvasme =
new
(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None);
1615
DataGridViewAutoSizeModeEventArgs dgvasme =
new
(_columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize);
3455
DataGridViewAutoSizeModeEventArgs dgvasme =
new
(
System.Windows.Forms.Tests (27)
System\Windows\Forms\DataGridViewAutoSizeModeEventArgsTests.cs (1)
14
DataGridViewAutoSizeModeEventArgs e =
new
(previousModeAutoSized);
System\Windows\Forms\DataGridViewTests.cs (26)
2103
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.AutoSize, new
DataGridViewAutoSizeModeEventArgs
(true) };
2104
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.AutoSize, new
DataGridViewAutoSizeModeEventArgs
(false) };
2105
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.DisableResizing, new
DataGridViewAutoSizeModeEventArgs
(false) };
2106
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.EnableResizing, new
DataGridViewAutoSizeModeEventArgs
(false) };
2142
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.AutoSize, new
DataGridViewAutoSizeModeEventArgs
(true), 18 };
2143
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.AutoSize, new
DataGridViewAutoSizeModeEventArgs
(false), 18 };
2144
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.DisableResizing, new
DataGridViewAutoSizeModeEventArgs
(false), DefaultColumnHeadersHeight };
2145
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.EnableResizing, new
DataGridViewAutoSizeModeEventArgs
(false), DefaultColumnHeadersHeight };
2199
DataGridViewAutoSizeModeEventArgs eventArgs =
new
(true);
2576
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders, new
DataGridViewAutoSizeModeEventArgs
(true) };
2577
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders, new
DataGridViewAutoSizeModeEventArgs
(false) };
2578
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders, new
DataGridViewAutoSizeModeEventArgs
(true) };
2579
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders, new
DataGridViewAutoSizeModeEventArgs
(false) };
2580
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader, new
DataGridViewAutoSizeModeEventArgs
(true) };
2581
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader, new
DataGridViewAutoSizeModeEventArgs
(false) };
2582
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.DisableResizing, new
DataGridViewAutoSizeModeEventArgs
(false) };
2583
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.EnableResizing, new
DataGridViewAutoSizeModeEventArgs
(false) };
2619
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders, new
DataGridViewAutoSizeModeEventArgs
(true), 21 };
2620
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders, new
DataGridViewAutoSizeModeEventArgs
(false), 21 };
2621
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders, new
DataGridViewAutoSizeModeEventArgs
(true), 21 };
2622
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders, new
DataGridViewAutoSizeModeEventArgs
(false), 21 };
2623
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader, new
DataGridViewAutoSizeModeEventArgs
(true), 21 };
2624
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader, new
DataGridViewAutoSizeModeEventArgs
(false), 21 };
2625
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.DisableResizing, new
DataGridViewAutoSizeModeEventArgs
(false), DefaultRowHeadersWidth };
2626
yield return new object[] { DataGridViewRowHeadersWidthSizeMode.EnableResizing, new
DataGridViewAutoSizeModeEventArgs
(false), DefaultRowHeadersWidth };
2680
DataGridViewAutoSizeModeEventArgs eventArgs =
new
(true);
22 references to DataGridViewAutoSizeModeEventArgs
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
973
DataGridViewAutoSizeModeEventArgs
dgvasme = new(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None);
1615
DataGridViewAutoSizeModeEventArgs
dgvasme = new(_columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize);
3455
DataGridViewAutoSizeModeEventArgs
dgvasme = new(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
11319
protected virtual void OnAutoSizeRowsModeChanged(
DataGridViewAutoSizeModeEventArgs
e)
13975
protected virtual void OnColumnHeadersHeightSizeModeChanged(
DataGridViewAutoSizeModeEventArgs
e)
18242
protected virtual void OnRowHeadersWidthSizeModeChanged(
DataGridViewAutoSizeModeEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewEventHandlers.cs (1)
10
public delegate void DataGridViewAutoSizeModeEventHandler(object? sender,
DataGridViewAutoSizeModeEventArgs
e);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewAutoSizeModeEventArgsTests.cs (1)
14
DataGridViewAutoSizeModeEventArgs
e = new(previousModeAutoSized);
System\Windows\Forms\DataGridViewTests.cs (14)
2111
public void DataGridView_OnColumnHeadersHeightSizeModeChanged_Invoke_CallsColumnHeadersHeightSizeModeChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2150
public void DataGridView_OnColumnHeadersHeightSizeModeChanged_InvokeWithHandle_CallsColumnHeadersHeightSizeModeChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs, int expectedColumnHeadersHeight)
2199
DataGridViewAutoSizeModeEventArgs
eventArgs = new(true);
2205
public void DataGridView_OnColumnHeadersHeightSizeModeChanged_InvokeDisposed_DoesNotCallColumnHeadersHeightSizeModeChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2232
public void DataGridView_OnColumnHeadersHeightSizeModeChanged_InvokeInDisposing_CallsColumnHeadersHeightSizeModeChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2271
public void DataGridView_OnColumnHeadersHeightSizeModeChanged_InvokeInColumnDisposing_DoesNotCallColumnHeadersHeightSizeModeChanged(DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2588
public void DataGridView_OnRowHeadersWidthSizeModeChanged_Invoke_CallsRowHeadersWidthSizeModeChanged(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2631
public void DataGridView_OnRowHeadersWidthSizeModeChanged_InvokeWithHandle_CallsRowHeadersWidthSizeModeChanged(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs, int expectedRowHeadersWidth)
2680
DataGridViewAutoSizeModeEventArgs
eventArgs = new(true);
2686
public void DataGridView_OnRowHeadersWidthSizeModeChanged_InvokeDisposed_DoesNotCallRowHeadersWidthSizeModeChanged(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2713
public void DataGridView_OnRowHeadersWidthSizeModeChanged_InvokeInDisposing_CallsRowHeadersWidthSizeModeChanged(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2752
public void DataGridView_OnRowHeadersWidthSizeModeChanged_InvokeInColumnDisposing_DoesNotCallRowHeadersWidthSizeModeChanged(DataGridViewRowHeadersWidthSizeMode rowHeadersWidthSizeMode,
DataGridViewAutoSizeModeEventArgs
eventArgs)
2895
public new void OnColumnHeadersHeightSizeModeChanged(
DataGridViewAutoSizeModeEventArgs
e) => base.OnColumnHeadersHeightSizeModeChanged(e);
2899
public new void OnRowHeadersWidthSizeModeChanged(
DataGridViewAutoSizeModeEventArgs
e) => base.OnRowHeadersWidthSizeModeChanged(e);