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 the color of the border, as an ExcelWriter {msdn:System.Drawing.Color|Color} object.  If multiple colors were assigned to border parts,  {{Color}} will return the color of the top border.{excerpt}
{signature:C#}
 public Color Color{ get; set; }
{signature}{signature:vb.net}
Public Property Color() As Color
{signature}
{example}{code:csharp|title=C#}

          //--- Get Color
          Color c = b.Color;

          //--- Set Color
          b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue);
        {code}
{code:vb.net|title=vb.net}

          '--- Get Color
          Dim c As Color = b.Color

          '--- Set Color
          b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue)
        {code}

{example}
{scrollbar}