AnimatGuiCtrls.Controls.ComboTreeBox.IsNodeVisible C# (CSharp) Method

IsNodeVisible() private method

Determines whether the specified node should be displayed.
private IsNodeVisible ( ComboTreeNode node ) : bool
node ComboTreeNode
return bool
        internal bool IsNodeVisible(ComboTreeNode node)
        {
            bool displayed = true;
            ComboTreeNode parent = node;
            while ((parent = parent.Parent) != null) {
                if (!parent.Expanded) {
                    displayed = false;
                    break;
                }
            }
            return displayed;
        }