Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

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

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public NamedStyle this[System.String name] { get; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Default ReadOnly Property Item(ByVal name As String) As NamedStyle</p>NamedStyle

Parameters

Param
name
name

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

...

Example
Code Block
csharp
csharp
titleC#
            //--- Get Style by name
          NamedStyle myStyle = styls["MyStyle"];

          //--- Get Style by ID
          NamedStyle styleZero = styls[0];
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Get Style by name
          Dim myStyle As NamedStyle = styls.Item("MyStyle")

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