Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a Shading.ShadingPattern object that represents the shading pattern used.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public ShadingPattern Pattern{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Pattern() As ShadingPattern</p>ShadingPattern
Remarks

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

Example
Code Block
csharp
csharp
titleC#
            //--- Return Pattern
          ShadingShadingPattern shadPattern = shad.Pattern;

          //--- Set Pattern
          shad.Pattern = Shading.ShadingPattern.DarkVertical;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return Pattern
          Dim shadPattern As Shading.ShadingPattern = shad.Pattern

          '--- Set Pattern
          shad.Pattern = Shading.ShadingPattern.DarkVertical