Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Node.ExNode.GetParentNode C# (CSharp) Method

GetParentNode() public static method

public static GetParentNode ( ) : void
return void
        public static void GetParentNode()
        {
            // ExStart:GetParentNode           
            // Create a new empty document. It has one section.
            Document doc = new Document();
            // The section is the first child node of the document.
            Node section = doc.FirstChild;
            // The section's parent node is the document.
            Console.WriteLine("Section parent is the document: " + (doc == section.ParentNode));
            // ExEnd:GetParentNode           
        }
        public static void OwnerDocument()