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

CreateAndAddParagraphNode() public static method

public static CreateAndAddParagraphNode ( ) : void
return void
        public static void CreateAndAddParagraphNode()
        {
            // ExStart:CreateAndAddParagraphNode
            Document doc = new Document();
            Paragraph para = new Paragraph(doc);
            AWords.Section section = doc.LastSection;
            section.Body.AppendChild(para);
            // ExEnd:CreateAndAddParagraphNode
        }
    }