Sets or returns a object that represents the foreground color. This is the alternate color that is used with patterns.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public System.Drawing.Color ForegroundColor{ get; set; }
</pre></td></tr></table>
<p>Public Property ForegroundColor() As System.Drawing.Color</p>

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


          //--- Return ForegroundColor
          Color clr = shad.ForegroundColor;

          //--- Set ForegroundColor
          shad.ForegroundColor = Color.Yellow;
        

          '--- Return ForegroundColor
          Dim clr As Color = shad.ForegroundColor

          '--- Set ForegroundColor
          shad.ForegroundColor = Color.Yellow