Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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#
 public GlobalStyle CreateStyle()
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.

Example
Code Block
csharp
csharp
titleC#
Style styl = wb.CreateStyle();
Code Block
vb.net
vb.net
titlevb.net
Dim styl As Style = wb.CreateStyle()