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}{signature:
}
Signature
vb.net
vb.net
Public Function CreateStyle() As GlobalStyle
{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#}
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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim styl As Style = wb.CreateStyle()
{code} {example}