Add Section Break in Word with NET REST API

This article describes the process to add section break in Word with NET REST API. You will learn how to insert a section break in Word with C# REST API using the .NET cloud SDK. It will explain various properties of the insertion request to customize the process.

Prerequisite

Steps to Insert Section Break in Word with C# Low Code API

  1. Create an object of the WordsApi class by providing the client ID and secret to add sections
  2. Instantiate the InsertSectionOnlineRequest object for inserting sections
  3. Set the Word document and index where the section is to be inserted
  4. Call the InsertSectionOnline() method using the request object
  5. Save the output Word file after adding a section

The above steps define how to add section break in Word with C# Low Code API. Commence the process by instantiating the WordsApi class object, creating the InsertSectionOnlineRequest using the source Word file, and providing the index where you want to insert a section. Finally, call the InsertSectionOnline() method using the above request object to add a section in the loaded Word file.

Code to Add Sections to Word Document with NET REST API

This sample code exhibits the task to insert a section break in Word with C# REST API. You can set the source document LoadEncoding and password. You may also set the destination file name, revision author, and revision date.

In this topic, we have learned the process of adding a section break. If you are looking to insert a footnote in a Word file, refer to the following article: Insert footnote in Word with NET REST API.

 English