Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Fields.FieldsHelper.CheckDepthAndRemoveNode C# (CSharp) Method

CheckDepthAndRemoveNode() private method

Checks whether the node is inside a field or should be skipped and then removes it if necessary.
private CheckDepthAndRemoveNode ( Node node ) : void
node Node
return void
        private void CheckDepthAndRemoveNode(Node node)
        {
            if (mFieldDepth > 0 && !mNodesToSkip.Contains(node))
                node.Remove();
        }