This class is represents background shading for text, table cells, etc.

<p> public sealed class Shading</p>
<p>Public NotInheritable Class Shading</p>

MS Word equivalent: Format menu > Borders and Shading... > Shading tab

The following example demonstrates how to get the shading object of a paragraph.


          WordApplication app = new WordApplication();
          Document doc = app.Create();
          Paragraph paragraph = doc.InsertParagraphAfter(null);
          Shading shad = paragraph.Formatting.Shading;
        

          Dim app As New WordApplication()
          Dim doc As Document = app.Create()
          Dim paragraph As Paragraph = doc.InsertParagraphAfter(Nothing)
          Dim shad As Shading = paragraph.Formatting.Shading
        

Name

Description

BackgroundColor

ForegroundColor

Pattern

Name

Description

ShadingPattern