Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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



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

          WordApplication app = new WordApplication();
          Document doc = app.Create();
          Paragraph paragraph = doc.InsertParagraphAfter(null);
          Shading shad = paragraph.Formatting.Shading;
        
{code}
{code:vb.net
|title=vb.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
        
Signature
C#C#
Wiki Markup
{description}
{excerpt}This class is represents background shading for text, table cells, etc.{excerpt}
{signature:C#}
 public sealed class Shading
Signature
{signature}{signature:vb.net
vb.net
}
Public NotInheritable Class Shading
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > Borders and Shading... > Shading tab


The following example demonstrates how to get the shading object of a paragraph.
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle
Properties

...

Name

...

Description

...

BackgroundColor

...

{code}

{example}
{properties}
||Name||Description||
|[BackgroundColor|Shading.BackgroundColor]|{excerpt-include:Shading.BackgroundColor

...

ForegroundColor

|nopanel=true}|
|[ForegroundColor|Shading.ForegroundColor]|{excerpt-include

...

:Shading.ForegroundColor

...

Pattern

|nopanel=true}|
|[Pattern|Shading.Pattern]|{excerpt-include

...

:Shading.Pattern

...

Classes

...

Name

...

Description

...

ShadingPattern

...

|nopanel=true}|
{classes}
||Name||Description||
|[ShadingPattern|Shading.ShadingPattern]|{excerpt-include:Shading.ShadingPattern|nopanel=true}|