Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Returns a NamedStyle object that represents the named style that has the specified built in name.

Signature
C#
C#
 public NamedStyle this[BuiltIn name] { get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Default ReadOnly Property Item(ByVal name As BuiltIn) As NamedStyle
{signature}
{parameters}
{param:name}A [NamedStyle.BuiltIn|NamedStyle.BuiltIn] enumeration that represents the name of the style to retrieve.{param}
{returns}A {{NamedStyle}} object that represents the named style that has the specified built in name.{returns}
{example}{code:csharp|title=C#}
Parameters
Param
name
name

A NamedStyle.BuiltIn enumeration that represents the name of the style to retrieve.

Returns

A NamedStyle object that represents the named style that has the specified built in name.

Example
Code Block
csharp
csharp
titleC#


          //--- Get Style by name
          NamedStyle myStyle = styls[NamedStyle.BuiltIn.Normal];
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get Style by name
          Dim myStyle As NamedStyle = styls.Item(NamedStyle.BuiltIn.Normal)
        
{code} {example}