Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

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

Signature
C#
C#

<p> public sealed class Shading
{signature}{signature:Shading</p>
} Public
Signature
vb.net
vb.net

<p>Public NotInheritable Class Shading
{signature}
{remarks}MS Word equivalent: Format menu > Borders and Shading</p>
Remarks

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

>

Shading

tab

The

following

example

demonstrates

how

to

get

the

shading

object

of

a

paragraph.

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#


          WordApplication app = new WordApplication();
          Document doc = app.Create();
          Paragraph paragraph = doc.InsertParagraphAfter(null);
          Shading shad = paragraph.Formatting.Shading;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          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
        
{code} {example} {properties} ||Name||Description|| |[BackgroundColor|Shading.BackgroundColor]|{excerpt-include:Shading.BackgroundColor|nopanel=true}| |[ForegroundColor|Shading.ForegroundColor]|{excerpt-include:Shading.ForegroundColor|nopanel=true}| |[Pattern|Shading.Pattern]|{excerpt-include:Shading.Pattern|nopanel=true}| {classes} ||Name||Description|| |[ShadingPattern|Shading.ShadingPattern]|{excerpt-include:Shading.ShadingPattern|nopanel=true}|
Properties

Name

Description

BackgroundColor

Excerpt Include
Shading.BackgroundColor
Shading.BackgroundColor
nopaneltrue

ForegroundColor

Excerpt Include
Shading.ForegroundColor
Shading.ForegroundColor
nopaneltrue

Pattern

Excerpt Include
Shading.Pattern
Shading.Pattern
nopaneltrue
Classes

Name

Description

ShadingPattern

Excerpt Include
Shading.ShadingPattern
Shading.ShadingPattern
nopaneltrue