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
Wiki Markup
{description}
{excerpt}Sets or returns a foreground color for cells. A foreground color is visible when a pattern is assigned to a cell.{excerpt}
{signature:C#}
 public Color ForegroundColor{ get; set; }
{signature}{signature:vb.net}
Public Property ForegroundColor() As Color
{signature}
{example}{code:csharp|title=C#}

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

          //--- Set ForegroundColor
          styl.ForegroundColor = wb.Palette.GetClosestColor(162, 221, 139);
        {code}
{code:vb.net|title=vb.net}

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

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

{example}