You can directly set BorderType property of Borders to add page borders and set Color, Space of Left/Right properties to format borders. Borders is one property of PageSetup of Section class.
NET offers Section class to allow you to create new section instance or manipulate existing section. The following screenshot presents Word with page borders after programming. This guide demonstrates how to add page borders for Word document and format them in C# and VB.NET via Spire.Doc for. All the formats of page borders can be customized, including style, color, width, margin etc. MS Word enables users to decorate Word pages to have a better layout or appearance.
Solution in this guide introduces how to insert and format Word page border in C# and VB.NET. Word Page Border is one part of page background to beautify document appearance.