Sets or returns a foreground color for cells. A foreground color is visible when a pattern is assigned to a cell.

<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 Color ForegroundColor{ get; set; }
</pre></td></tr></table>
<p>Public Property ForegroundColor() As Color</p>

          //--- Get ForegroundColor
          Color fgColor = styl.ForegroundColor;

          //--- Set ForegroundColor
          styl.ForegroundColor = wb.Palette.GetClosestColor(162, 221, 139);
        

          '--- Get ForegroundColor
          Dim fgColor As Color = styl.ForegroundColor

          '--- Set ForegroundColor
          styl.ForegroundColor = wb.Palette.GetClosestColor(162, 221, 139)