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 }; 1051CollapsedState = value 1057group.CollapsedState = value; 1068CollapsedState = value 1078group.CollapsedState = value; 1091CollapsedState = value 1110group.CollapsedState = value; 1133group.CollapsedState = (ListViewGroupCollapsedState)data[0]; 1171Assert.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); 1054Assert.Equal(expected, group.CollapsedState); 1058Assert.Equal(expected, group.CollapsedState); 1073Assert.Equal(expected, group.CollapsedState); 1074Assert.Equal(group.CollapsedState, listView.Groups[0].CollapsedState); 1079Assert.Equal(expected, group.CollapsedState); 1080Assert.Equal(group.CollapsedState, listView.Groups[0].CollapsedState); 1103Assert.Equal(expected, group.CollapsedState); 1111Assert.Equal(expected, group.CollapsedState); 1146Assert.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);