Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Applies a style to the cell. When a style is applied - rather than set (see Cell.Style ) - only the differences between the new style and style properties previously assigned to the cell (through the ExcelWriter API) will take effect. For example, if the cell has a background color and the new style applied does not contain a background color, the cell's color will not be affected. However, if the new style includes a background color, it will replace the existing background color of the cell.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Applies a style to the cell. When a style is applied \- rather than set \(see [Cell.Style|Cell.Style] \) \- only the differences between the new style and style properties previously assigned to the cell \(through the ExcelWriter API\) will take effect. For example, if the cell has a background color and the new style applied does not contain a background color, the cell's color will not be affected. However, if the new style includes a background color, it will replace the existing background color of the cell.{excerpt}
{signature:C#}
 public void ApplyStyle(Style style)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub ApplyStyle(ByVal style As Style)
Parameters
{signature}
{parameters}
{param:style}A [Style|Style] object representing the style to apply to the cell.{param}
{example}{code:csharp|title=C#}
cellA1.ApplyStyle(s);
{code}
{code:vb.net
|title=vb.net
}
cellA1.ApplyStyle(s)
Param
stylestyle

A Style object representing the style to apply to the cell.

Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle

...

{code}

{example}
{scrollbar}