ApiExamples.ExFont.RemoveHiddenContentVisitor.isHidden C# (CSharp) Method

isHidden() private method

Returns true if the node passed is set as hidden, returns false if it is visible.
private isHidden ( Node node ) : bool
node Node
return bool
            private bool isHidden(Node node)
            {
                if (node is Inline)
                {
                    // If the node is Inline then cast it to retrieve the Font property which contains the hidden property
                    Inline currentNode = (Inline)node;
                    return currentNode.Font.Hidden;
                }
                else if (node.NodeType == NodeType.Paragraph)
                {
                    // If the node is a paragraph cast it to retrieve the ParagraphBreakFont which contains the hidden property
                    Paragraph para = (Paragraph)node;
                    return para.ParagraphBreakFont.Hidden;
                }
                else if (node is ShapeBase)
                {
                    // Node is a shape or groupshape.
                    ShapeBase shape = (ShapeBase)node;
                    return shape.Font.Hidden;
                }
                else if (node is InlineStory)
                {
                    // Node is a comment or footnote.
                    InlineStory inlineStory = (InlineStory)node;
                    return inlineStory.Font.Hidden;
                }

                // A node that is passed to this method which does not contain a hidden property will end up here. 
                // By default nodes are not hidden so return false.
                return false;
            }