26 writes to CollapsedState
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6367targetGroup.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)
709CollapsedState = ListViewGroupCollapsedState.Expanded 718CollapsedState = ListViewGroupCollapsedState.Collapsed 743CollapsedState = ListViewGroupCollapsedState.Expanded 793ListViewGroup group1 = new("Group 1") { CollapsedState = firstGroupSate }; 794ListViewGroup group2 = new("Group 2") { CollapsedState = ListViewGroupCollapsedState.Expanded }; 795ListViewGroup group3 = new("Group 3") { CollapsedState = ListViewGroupCollapsedState.Expanded }; 1325CollapsedState = listViewGroupCollapsedState,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (3)
1204ListViewGroup listViewGroup = new("Test") { CollapsedState = state }; 1937CollapsedState = ListViewGroupCollapsedState.Expanded 1943CollapsedState = ListViewGroupCollapsedState.Collapsed
System\Windows\Forms\ListViewGroupTests.cs (9)
120ListViewGroup group = new() { CollapsedState = collapsedState }; 1048CollapsedState = value 1054group.CollapsedState = value; 1065CollapsedState = value 1075group.CollapsedState = value; 1088CollapsedState = value 1107group.CollapsedState = value; 1130group.CollapsedState = (ListViewGroupCollapsedState)data[0]; 1168Assert.Throws<InvalidEnumArgumentException>("value", () => group.CollapsedState = value);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
129listViewGroup.CollapsedState = collapsedState;
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
50ListViewGroup group = new($"Group 1", HorizontalAlignment.Left) { CollapsedState = ListViewGroupCollapsedState.Expanded };
WinFormsControlsTest (2)
ListViewTest.cs (2)
149CollapsedState = ListViewGroupCollapsedState.Expanded 162CollapsedState = 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"/>. 4418listViewGroup.CollapsedState == ListViewGroupCollapsedState.Collapsed 5712if (group.CollapsedState != ListViewGroupCollapsedState.Default) 5715if (group.CollapsedState == ListViewGroupCollapsedState.Collapsed) 6362if (targetGroup.CollapsedState == ListViewGroupCollapsedState.Default) 6367targetGroup.CollapsedState = targetGroup.CollapsedState == ListViewGroupCollapsedState.Expanded 6922if (group is null || group.CollapsedState is ListViewGroupCollapsedState.Default || !groups.Add(group.ID)) 6928if (nativeState != group.CollapsedState)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
54uint rectType = _owningGroup.CollapsedState == ListViewGroupCollapsedState.Collapsed 95_owningGroup.CollapsedState == ListViewGroupCollapsedState.Collapsed 303UIA_PATTERN_ID.UIA_ExpandCollapsePatternId => _owningGroup.CollapsedState != ListViewGroupCollapsedState.Default,
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
90if (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 186if (OwningGroup?.CollapsedState == ListViewGroupCollapsedState.Collapsed)
System.Windows.Forms.Tests (19)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (3)
828Assert.Equal(firstGroupSate, group1.CollapsedState); 830Assert.Equal(ListViewGroupCollapsedState.Collapsed, group2.CollapsedState); 832Assert.Equal(ListViewGroupCollapsedState.Expanded, group3.CollapsedState);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1835bool expected = listView.GroupsDisplayed && listView.Items[0].Group?.CollapsedState == ListViewGroupCollapsedState.Collapsed;
System\Windows\Forms\ListViewGroupTests.cs (15)
28Assert.Equal(ListViewGroupCollapsedState.Default, group.CollapsedState); 49Assert.Equal(ListViewGroupCollapsedState.Default, group.CollapsedState); 79Assert.Equal(ListViewGroupCollapsedState.Default, group.CollapsedState); 107Assert.Equal(ListViewGroupCollapsedState.Default, group.CollapsedState); 1051Assert.Equal(expected, group.CollapsedState); 1055Assert.Equal(expected, group.CollapsedState); 1070Assert.Equal(expected, group.CollapsedState); 1071Assert.Equal(group.CollapsedState, listView.Groups[0].CollapsedState); 1076Assert.Equal(expected, group.CollapsedState); 1077Assert.Equal(group.CollapsedState, listView.Groups[0].CollapsedState); 1100Assert.Equal(expected, group.CollapsedState); 1108Assert.Equal(expected, group.CollapsedState); 1143Assert.Equal(expectedCollapsedState, group.CollapsedState);
System.Windows.Forms.UI.IntegrationTests (2)
ListViewTests.cs (2)
103Assert.Equal(ListViewGroupCollapsedState.Collapsed, group.CollapsedState); 110Assert.Equal(ListViewGroupCollapsedState.Expanded, group.CollapsedState);