

Applies the built-in table style (Medium Shading 1 Accent 1) to the table. Table.AddParagraph().AppendText("Country") Table.AddParagraph().AppendText("Address") Table.AddParagraph().AppendText("Contact Name") Table.AddParagraph().AppendText("Company Name") Table.AddParagraph().AppendText("Supplier ID") WTable table = section.AddTable() as WTable WParagraphStyle style = ("Normal") as WParagraphStyle Modifies the font size to 10 for default paragraph style. IWTextRange textRange = paragraph.AppendText("Suppliers") IWParagraph paragraph = section.AddParagraph()

IWSection section = document.AddSection() Using (WordDocument document = new WordDocument()) Creates new Word document instance for Word processing.
#Copy table formatting in word 2010 how to
The following code example illustrates how to apply the built-in table style “Medium Shading 1 Accent 1” to a table created from scratch in a Word document (DOCX). Using Syncfusion Word Library, you can apply any of these built-in table styles to a table programmatically with just a single line of code. Microsoft Word provides various built-in table styles to customize the look and feel of tables in Word documents. Apply built-in table styles to a Word table created from scratch in C# Refer to our documentation for more information about enabling and disabling the style options of a table programmatically.


Different formatting in Word table stylesĪfter creating a table in a Word document, you can easily format that table by applying a table style. The resultant documents can be saved as Word documents (DOCX, WordML), PDFs, images, HTML, and more. It saves you effort and time by helping you automate the formatting of the tables in your Word documents, using table styles programmatically in C# and VB.NET. The Syncfusion Word Library provides comprehensive APIs to apply built-in table styles, modify an existing table style, create new custom table styles, and copy table styles from one Word document to another. NET Word Library (Essential DocIO) without Microsoft Word or Office interop dependencies. In this article, we are going to learn how to create, apply, and modify table styles in Word documents programmatically in C# and VB.NET using the Syncfusion. It also allows you to reuse a style for several tables to format all your documents consistently. Using table styles instead of directly formatting a table saves time in modifying the look of a table and switching to a different table style.
#Copy table formatting in word 2010 software
BoldSign – Electronic Signature Software NewĪ table style holds a set of table, row, cell, paragraph, and text formatting that can be applied to tables.
