22 references to Expanded
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6371targetGroup.CollapsedState = targetGroup.CollapsedState == ListViewGroupCollapsedState.Expanded 6373: ListViewGroupCollapsedState.Expanded;
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
414return state.HasFlag(LIST_VIEW_GROUP_STATE_FLAGS.LVGS_COLLAPSED) ? ListViewGroupCollapsedState.Collapsed : ListViewGroupCollapsedState.Expanded;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
152=> _owningGroup.CollapsedState = ListViewGroupCollapsedState.Expanded;
System.Windows.Forms.Tests (15)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (9)
709CollapsedState = ListViewGroupCollapsedState.Expanded 743CollapsedState = ListViewGroupCollapsedState.Expanded 774Assert.Equal(ListViewGroupCollapsedState.Expanded, listViewGroup.GetNativeCollapsedState()); 780Assert.Equal(ListViewGroupCollapsedState.Expanded, listViewGroup.GetNativeCollapsedState()); 786[InlineData(ListViewGroupCollapsedState.Expanded)] 794ListViewGroup group2 = new("Group 2") { CollapsedState = ListViewGroupCollapsedState.Expanded }; 795ListViewGroup group3 = new("Group 3") { CollapsedState = ListViewGroupCollapsedState.Expanded }; 831Assert.Equal(ListViewGroupCollapsedState.Expanded, group3.GetNativeCollapsedState()); 832Assert.Equal(ListViewGroupCollapsedState.Expanded, group3.CollapsedState);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1937CollapsedState = ListViewGroupCollapsedState.Expanded
System\Windows\Forms\ListViewGroupTests.cs (4)
116[InlineData(ListViewGroupCollapsedState.Expanded)] 1041yield return new object[] { ListViewGroupCollapsedState.Expanded, ListViewGroupCollapsedState.Expanded }; 1151else if (expectedCollapsedState == ListViewGroupCollapsedState.Expanded)
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
117[InlineData(ListViewGroupCollapsedState.Expanded, false)]
System.Windows.Forms.UI.IntegrationTests (2)
ListViewTests.cs (2)
50ListViewGroup group = new($"Group 1", HorizontalAlignment.Left) { CollapsedState = ListViewGroupCollapsedState.Expanded }; 110Assert.Equal(ListViewGroupCollapsedState.Expanded, group.CollapsedState);
WinFormsControlsTest (1)
ListViewTest.cs (1)
149CollapsedState = ListViewGroupCollapsedState.Expanded