Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Wed Feb 09, 2011 3:16 am

Hi experts,

I want to embed paragraph shading in my word document by using your Spire.Doc for .NET. Can you give me VB.NET demo code?


Posts: 5
Joined: Thu Dec 23, 2010 1:17 am

Wed Feb 09, 2011 9:17 am

Hi Linda,

use the code below to have a try:

Dim document As New Document()
Dim section As Section = document.AddSection()
Dim p2 As Paragraph = section.AddParagraph()
p2.Format.BackColor = Color.Blue


e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc