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
Wiki Markup
{description}
{excerpt}Returns a [NamedStyle|NamedStyle] object that represents the named style that has the specified built in name.{excerpt}
{signature:C#}
 public NamedStyle this[BuiltIn name] { get; }
{signature}{signature: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#}

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

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

{example}