Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
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}{signature:vb.net
vb.net
}
Public Default ReadOnly Property Item(ByVal name As BuiltIn) As NamedStyle
Parameters

...

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.

{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}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle