Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Excerpt

Sets or returns the background color for cells.

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

          //--- Set BackgroundColor
          styl.BackgroundColor = wb.Palette.GetClosestColor(162, 221, 139);
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}
          
'--- Get BackgroundColor
          Dim bgColor As Color = styl.BackgroundColor

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