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

Sets the style for every cell in this range. When a style is set - rather than applied (see Range.ApplyStyle ) - all previously assigned style properties, including font and number formatting, will be overwritten for all cells in the range.

Signature
C#
C#
 public void SetStyle(Style style)
Signature
vb.net
vb.net
Public Sub SetStyle(ByVal style As Style)
Parameters
Param
style
style

The Style object to assign to the range.

Example
Code Block
csharp
csharp
titleC#
rng.SetStyle(styl);
Code Block
vb.net
vb.net
titlevb.net
rng.SetStyle(styl)