23 references to ColumnHeaderStyle
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListView.cs (8)
54
private
ColumnHeaderStyle
_headerStyle =
ColumnHeaderStyle
.Clickable;
670
case
ColumnHeaderStyle
.None:
673
case
ColumnHeaderStyle
.Nonclickable:
992
[DefaultValue(
ColumnHeaderStyle
.Clickable)]
994
public
ColumnHeaderStyle
HeaderStyle
1008
if ((_listViewState[LISTVIEWSTATE_nonclickHdr] && value ==
ColumnHeaderStyle
.Clickable) ||
1009
(!_listViewState[LISTVIEWSTATE_nonclickHdr] && value ==
ColumnHeaderStyle
.Nonclickable))
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
313
_columnsAndRowsListView.HeaderStyle =
ColumnHeaderStyle
.Nonclickable;
System.Windows.Forms.Tests (14)
System\Windows\Forms\ListViewTests.cs (14)
88
Assert.Equal(
ColumnHeaderStyle
.Clickable, control.HeaderStyle);
2036
[EnumData<
ColumnHeaderStyle
>]
2037
public void ListView_HeaderStyle_Set_GetReturnsExpected(
ColumnHeaderStyle
value)
2053
[InlineData(
ColumnHeaderStyle
.Clickable, 0, 0, 0)]
2054
[InlineData(
ColumnHeaderStyle
.Nonclickable, 2, 0, 1)]
2055
[InlineData(
ColumnHeaderStyle
.None, 1, 1, 0)]
2056
public void ListView_HeaderStyle_SetClickableWithHandle_GetReturnsExpected(
ColumnHeaderStyle
value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount, int expectedCreatedCallCount)
2084
[InlineData(
ColumnHeaderStyle
.Clickable, 2, 0, 1)]
2085
[InlineData(
ColumnHeaderStyle
.Nonclickable, 0, 0, 0)]
2086
[InlineData(
ColumnHeaderStyle
.None, 1, 1, 0)]
2087
public void ListView_HeaderStyle_SetNonClickableWithHandle_GetReturnsExpected(
ColumnHeaderStyle
value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount, int expectedCreatedCallCount)
2091
HeaderStyle =
ColumnHeaderStyle
.Nonclickable
2118
[InvalidEnumData<
ColumnHeaderStyle
>]
2119
public void ListView_HeaderStyle_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ColumnHeaderStyle
value)