34 references to IsExpanded
System.Windows.Forms (7)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
1680if (!IsExpanded) 1946bool expanded = IsExpanded; 2107if (IsExpanded)
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (4)
68if (_owningTreeNode.IsExpanded) 90: _owningTreeNode.IsExpanded 94=> _owningTreeNode.IsExpanded 221return _owningTreeNode.IsExpanded
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2034if (node.IsExpanded)
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (8)
111Assert.Equal(isExpanded, node.IsExpanded); 115Assert.Equal(!isExpanded, node.IsExpanded); 360Assert.False(node.IsExpanded); 364Assert.True(node.IsExpanded); 376Assert.False(node.IsExpanded); 380Assert.False(node.IsExpanded); 393Assert.True(node.IsExpanded); 397Assert.False(node.IsExpanded);
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
33Assert.False(treeNode.IsExpanded);
System\Windows\Forms\TreeNodeTests.cs (13)
28Assert.False(node.IsExpanded); 68Assert.False(node.IsExpanded); 116Assert.False(node.IsExpanded); 159Assert.False(node.IsExpanded); 207Assert.False(node.IsExpanded); 1742Assert.False(node.IsExpanded); 1760Assert.False(node.IsExpanded); 1783Assert.Equal(expected, node.IsExpanded); 1803Assert.Equal(expected, node.IsExpanded); 1815Assert.False(node.IsExpanded); 4792node.IsExpanded.Should().Be(expectedState); 4849node.IsExpanded.Should().BeTrue(); 4852node.IsExpanded.Should().BeFalse();
System\Windows\Forms\TreeViewTests.cs (4)
7438treeView.Nodes[0].IsExpanded.Should().BeFalse(); 7439treeView.Nodes[1].IsExpanded.Should().BeFalse(); 7449treeView.Nodes[0].IsExpanded.Should().BeTrue(); 7450treeView.Nodes[1].IsExpanded.Should().BeTrue();