36 references to EnableResizing
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
443
_columnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
1602
[DefaultValue(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)]
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
9329
if (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
9406
if (/*!this.RowHeadersVisible &&*/ ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
9460
if (ColumnHeadersVisible && ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
9600
if (ColumnHeadersVisible && ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
9614
&& ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
16015
Debug.Assert(_columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
139
(DataGridView is not null && DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
);
143
return DataGridView is not null && (DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing || DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
);
266
(DataGridView is not null && DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
))
286
if (DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing || DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)
System.Windows.Forms.Tests (24)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
978
bool expected = columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
1020
bool expected = columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
|| rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing;
2686
DataGridViewElementStates expected = rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing || columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
? DataGridViewElementStates.Resizable : 0;
System\Windows\Forms\DataGridViewTests.cs (21)
32
Assert.Equal(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, control.ColumnHeadersHeightSizeMode);
51
foreach (DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode in new DataGridViewColumnHeadersHeightSizeMode[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DataGridViewColumnHeadersHeightSizeMode.DisableResizing })
97
foreach (DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode in new DataGridViewColumnHeadersHeightSizeMode[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DataGridViewColumnHeadersHeightSizeMode.DisableResizing })
172
foreach (DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode in new DataGridViewColumnHeadersHeightSizeMode[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DataGridViewColumnHeadersHeightSizeMode.DisableResizing })
237
foreach (DataGridViewColumnHeadersHeightSizeMode columnHeadersWidthSizeMode in new DataGridViewColumnHeadersHeightSizeMode[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DataGridViewColumnHeadersHeightSizeMode.DisableResizing })
307
[InlineData(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, 1)]
384
[InlineData(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, 1)]
531
{ true, DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DefaultColumnHeadersHeight },
534
{ false, DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DefaultColumnHeadersHeight },
572
[InlineData(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, DataGridViewColumnHeadersHeightSizeMode.AutoSize)]
635
control.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
636
Assert.Equal(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, control.ColumnHeadersHeightSizeMode);
668
control.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
669
Assert.Equal(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, control.ColumnHeadersHeightSizeMode);
709
control.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
710
Assert.Equal(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, control.ColumnHeadersHeightSizeMode);
763
control.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
;
764
Assert.Equal(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, control.ColumnHeadersHeightSizeMode);
2106
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, new DataGridViewAutoSizeModeEventArgs(false) };
2145
yield return new object[] { DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
, new DataGridViewAutoSizeModeEventArgs(false), DefaultColumnHeadersHeight };
2191
[InlineData(DataGridViewColumnHeadersHeightSizeMode.
EnableResizing
)]