Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Style > BackgroundColor

BackgroundColor Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns the background color for cells.

BackgroundColor is a read / write property.



Examples:

[csharp]
// Get BackgroungColor
Color bgColor = styl.BackgroundColor;

// Set BackgroundColor
styl.BackgroundColor = wb.Palette.GetClosestColor(162, 221, 139);
[vbnet]
' Get BackgroundColor
Dim bgColor As Color = styl.BackgroundColor

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


Getter

Signature:

public Color BackgroundColor

Returns:

Color A Color object from the workbook's Palette .

Setter

Signature:

public void BackgroundColor Color bgColor

Type:

Color



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.