26 writes to CollapsedState
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6367
targetGroup.
CollapsedState
= targetGroup.CollapsedState == ListViewGroupCollapsedState.Expanded
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
147
=> _owningGroup.
CollapsedState
= ListViewGroupCollapsedState.Collapsed;
152
=> _owningGroup.
CollapsedState
= ListViewGroupCollapsedState.Expanded;
System.Windows.Forms.Tests (20)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
709
CollapsedState
= ListViewGroupCollapsedState.Expanded
718
CollapsedState
= ListViewGroupCollapsedState.Collapsed
743
CollapsedState
= ListViewGroupCollapsedState.Expanded
793
ListViewGroup group1 = new("Group 1") {
CollapsedState
= firstGroupSate };
794
ListViewGroup group2 = new("Group 2") {
CollapsedState
= ListViewGroupCollapsedState.Expanded };
795
ListViewGroup group3 = new("Group 3") {
CollapsedState
= ListViewGroupCollapsedState.Expanded };
1325
CollapsedState
= listViewGroupCollapsedState,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (3)
1204
ListViewGroup listViewGroup = new("Test") {
CollapsedState
= state };
1937
CollapsedState
= ListViewGroupCollapsedState.Expanded
1943
CollapsedState
= ListViewGroupCollapsedState.Collapsed
System\Windows\Forms\ListViewGroupTests.cs (9)
120
ListViewGroup group = new() {
CollapsedState
= collapsedState };
1051
CollapsedState
= value
1057
group.
CollapsedState
= value;
1068
CollapsedState
= value
1078
group.
CollapsedState
= value;
1091
CollapsedState
= value
1110
group.
CollapsedState
= value;
1133
group.
CollapsedState
= (ListViewGroupCollapsedState)data[0];
1171
Assert.Throws<InvalidEnumArgumentException>("value", () => group.
CollapsedState
= value);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
129
listViewGroup.
CollapsedState
= collapsedState;
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
50
ListViewGroup group = new($"Group 1", HorizontalAlignment.Left) {
CollapsedState
= ListViewGroupCollapsedState.Expanded };
WinFormsControlsTest (2)
ListViewTest.cs (2)
149
CollapsedState
= ListViewGroupCollapsedState.Expanded
162
CollapsedState
= ListViewGroupCollapsedState.Collapsed
35 references to CollapsedState
System.Windows.Forms (14)
System\Windows\Forms\Controls\ListView\ListView.cs (8)
2096
/// Occurs when the <see cref="ListViewGroup.
CollapsedState
"/> changes on a <see cref="ListViewGroup"/>.
4418
listViewGroup.
CollapsedState
== ListViewGroupCollapsedState.Collapsed
5712
if (group.
CollapsedState
!= ListViewGroupCollapsedState.Default)
5715
if (group.
CollapsedState
== ListViewGroupCollapsedState.Collapsed)
6362
if (targetGroup.
CollapsedState
== ListViewGroupCollapsedState.Default)
6367
targetGroup.CollapsedState = targetGroup.
CollapsedState
== ListViewGroupCollapsedState.Expanded
6922
if (group is null || group.
CollapsedState
is ListViewGroupCollapsedState.Default || !groups.Add(group.ID))
6928
if (nativeState != group.
CollapsedState
)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
54
uint rectType = _owningGroup.
CollapsedState
== ListViewGroupCollapsedState.Collapsed
95
_owningGroup.
CollapsedState
== ListViewGroupCollapsedState.Collapsed
303
UIA_PATTERN_ID.UIA_ExpandCollapsePatternId => _owningGroup.
CollapsedState
!= ListViewGroupCollapsedState.Default,
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
90
if (item.Group is not null && item.Group.
CollapsedState
== ListViewGroupCollapsedState.Collapsed)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
40
=> !_owningListView.IsHandleCreated || OwningGroup?.
CollapsedState
== ListViewGroupCollapsedState.Collapsed
186
if (OwningGroup?.
CollapsedState
== ListViewGroupCollapsedState.Collapsed)
System.Windows.Forms.Tests (19)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (3)
828
Assert.Equal(firstGroupSate, group1.
CollapsedState
);
830
Assert.Equal(ListViewGroupCollapsedState.Collapsed, group2.
CollapsedState
);
832
Assert.Equal(ListViewGroupCollapsedState.Expanded, group3.
CollapsedState
);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1835
bool expected = listView.GroupsDisplayed && listView.Items[0].Group?.
CollapsedState
== ListViewGroupCollapsedState.Collapsed;
System\Windows\Forms\ListViewGroupTests.cs (15)
28
Assert.Equal(ListViewGroupCollapsedState.Default, group.
CollapsedState
);
49
Assert.Equal(ListViewGroupCollapsedState.Default, group.
CollapsedState
);
79
Assert.Equal(ListViewGroupCollapsedState.Default, group.
CollapsedState
);
107
Assert.Equal(ListViewGroupCollapsedState.Default, group.
CollapsedState
);
1054
Assert.Equal(expected, group.
CollapsedState
);
1058
Assert.Equal(expected, group.
CollapsedState
);
1073
Assert.Equal(expected, group.
CollapsedState
);
1074
Assert.Equal(group.
CollapsedState
, listView.Groups[0].
CollapsedState
);
1079
Assert.Equal(expected, group.
CollapsedState
);
1080
Assert.Equal(group.
CollapsedState
, listView.Groups[0].
CollapsedState
);
1103
Assert.Equal(expected, group.
CollapsedState
);
1111
Assert.Equal(expected, group.
CollapsedState
);
1146
Assert.Equal(expectedCollapsedState, group.
CollapsedState
);
System.Windows.Forms.UI.IntegrationTests (2)
ListViewTests.cs (2)
103
Assert.Equal(ListViewGroupCollapsedState.Collapsed, group.
CollapsedState
);
110
Assert.Equal(ListViewGroupCollapsedState.Expanded, group.
CollapsedState
);