HelloWorld.cs
//
// This code is part of GrapeCity Documents for Word samples.
// Copyright (c) GrapeCity, Inc. All rights reserved.
//
using System;
using System.IO;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
using GrapeCity.Documents.Word;

namespace GcWordWeb.Samples
{
    // One of the simplest ways to create a "Hello, World!" DDCX.
    public class HelloWorld
    {
        public GcWordDocument CreateDocx()
        {
            // Create a new Word document:
            GcWordDocument doc = new GcWordDocument();
            // Add a paragraph with the 'Hello, World!' text to the first section:
            doc.Body.Sections.First.GetRange().Paragraphs.Add("Hello, World!");
            // Done:
            return doc;
        }
    }
}