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

Returns a NamedStyle if it exists. If the style does not exist, null is returned.

Signature
C#
C#
 public NamedStyle GetNamedStyle(System.String styleName)
Signature
vb.net
vb.net
Public Function GetNamedStyle(ByVal styleName As String) As NamedStyle
Parameters
Param
styleName
styleName

The name of the style to retrieve.

Returns

The named style with the name styleName, or null if the style does not exist.

Example
Code Block
csharp
csharp
titleC#
NamedStyle heading1Style = wb.GetNamedStyle("Heading1");
Code Block
vb.net
vb.net
titlevb.net
Dim heading1Style As NamedStyle = wb.GetNamedStyle("Heading1")