Returns a NamedStyle object that represents the named style that has the specified string version of its name.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public NamedStyle this[System.String name] { get; }
</pre></td></tr></table>
<p>Public Default ReadOnly Property Item(ByVal name As String) As NamedStyle</p>

An String that represents the name of the style's name to retrieve.

A NamedStyle object that represents the named style that has the specified string version of its name or the specified index.


          //--- Get Style by name
          NamedStyle myStyle = styls["MyStyle"];

          //--- Get Style by ID
          NamedStyle styleZero = styls[0];
        

          '--- Get Style by name
          Dim myStyle As NamedStyle = styls.Item("MyStyle")

          '--- Get Style by ID
          Dim styleZero As NamedStyle = styls.Item(0)