Excerpt |
---|
Returns a NamedStyle if it exists. If the style does not exist, null is returned. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Returns a [NamedStyle|NamedStyle] if it exists. If the style does not exist, null is returned.{excerpt}
{signature:C#}
public NamedStyle GetNamedStyle(System.String styleName)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function GetNamedStyle(ByVal styleName As String) As NamedStyle
|
...
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 |
title | C# |
---|
{signature}
{parameters}
{param:styleName}The name of the style to retrieve.{param}
{returns}The named style with the name {{styleName}}, or null if the style does not exist.{returns}
{example}{code:csharp|title=C#}
NamedStyle heading1Style = wb.GetNamedStyle("Heading1");
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim heading1Style As NamedStyle = wb.GetNamedStyle("Heading1"){code}
{example}