Skip to end of metadata
Go to start of metadata

Description

Returns a NamedStyle object that represents the named style that has the specified ID.
C#
public NamedStyle this[int index] { get; }
vb.net
Public Default ReadOnly Property Item(ByVal index As Integer) As NamedStyle

Parameters

name
An int that represents the ID of the style to retrieve.

Returns

A NamedStyle object that represents the named style that has the specified index.

Examples

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

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

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