AODL.Document.Export.Html.HTMLStyleBuilder.GetCellStyleAsHtml C# (CSharp) Метод

GetCellStyleAsHtml() публичный Метод

Gets the cell style as HTML.
public GetCellStyleAsHtml ( CellStyle cellStyle ) : string
cellStyle AODL.Document.Styles.CellStyle The cell style.
Результат string
		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;
		}