Page tree

Versions Compared

Key

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

Excerpt

Creates a global style, which can be bound to cells, areas, ranges, rows, and columns. Any later changes to this style will affect all cells to which the style was bound.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a global style, which can be bound to cells, areas, ranges, rows, and columns. Any later changes to this style will affect all cells to which the style was bound.{excerpt}
{signature:C#}
 public GlobalStyle CreateStyle()
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateStyle() As GlobalStyle
Returns

A GlobalStyle object which can be linked and applied to cells, but will not be accessible from the generated Excel spreadsheet.

Remarks

To bind a style to a cell or set of cells, use either Style or ApplyStyle. Both are accessible through the following objects: Cell, Area, Range, RowProperties, and ColumnProperties.

{signature}
{returns}A [GlobalStyle|GlobalStyle] object which can be linked and applied to cells, but will not be accessible from the generated Excel spreadsheet.{returns}
{remarks}To bind a style to a cell or set of cells, use either [Style|Style] or  {{ApplyStyle}}.  Both are accessible through the following objects: [Cell|Cell], [Area|Area], [Range|Range],   [RowProperties|RowProperties], and [ColumnProperties|ColumnProperties].

{remarks}
{example}{code:csharp|title=C#}
Style styl = wb.CreateStyle();
{code}
{code:vb.net
|title=vb.net
}
Dim styl As Style = wb.CreateStyle(){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle