public string GetCellStyleAsHtml(CellStyle cellStyle)
{
string style = "";
try
{
if (cellStyle != null)
{
if (cellStyle.CellProperties != null)
{
if (cellStyle.CellProperties.BackgroundColor != null)
style += "bgcolor=\""+cellStyle.CellProperties.BackgroundColor+"\" ";
}
}
}
catch(Exception ex)
{
throw new AODLException("Exception while trying to build a HTML style string from a CellStyle.", ex);
}
return style;
}