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

 public NamedStyle GetNamedStyle(System.String styleName)
Public Function GetNamedStyle(ByVal styleName As String) As NamedStyle

The name of the style to retrieve.

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

NamedStyle heading1Style = wb.GetNamedStyle("Heading1");
Dim heading1Style As NamedStyle = wb.GetNamedStyle("Heading1")