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

...

Description

Excerpt

Sets or returns the color of the border, as an ExcelWriter

Msdn
System.Drawing.Color

...

System.Drawing.Color
1Color
object.

...

If

...

multiple

...

colors

...

were

...

assigned

...

to

...

border

...

parts,

...

Color

...

will

...

return

...

the

...

color

...

of

...

the

...

top

...

border.

...

Signature
C#
C#
 public Color Color{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property Color() As Color
{signature}
{example}{code:csharp|title=C#}
Example
Code Block
csharp
csharp
titleC#


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

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


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

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