title: Creating and editing text in Word document in C#
body: <p>I have used itextsharp for PDF documents and now I need to create and add a text to a Word document(I'm using OpenXml SDK) so I would like to know what classes and objects are used here to add a paragraph or to set the alingment and indentation or to set the basefont and size of font. For example, this is my code for creating PDF using iTextSharp and now I want to translate it to create Word:</p>
  
  <pre><code> Document document = new Document(iTextSharp.text.PageSize.A4, 40, 40, 50, 50);
   PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(pdfFile.FileName, FileMode.Create));
   document.Open();
  
   document.NewPage();
   Paragraph title = new Paragraph("aaa",titleFont);
   title.Alignment = Element.ALIGN_CENTER;
   document.Add(title);
   document.Add(Chunk.NEWLINE);
  
   Paragraph p1 = new Paragraph("",Font11);
   p1.IndentationLeft = 20f;
   document.Add(p1);
  </code></pre>