Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Vbnet
2
2

'Get the properties for the column you want to alter
Dim properties As ColumnProperties = ws.GetColumnProperties(0)

'Apply a style to that column
properties.ApplyStyle(style)

Excerpt

Using one of these two techniques to apply styles will use less memory than creating a new style for each cell or modifying the Cell.Style property directly.