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
|
...
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 |
title | C# |
---|
{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 Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Get Style by name
Dim myStyle As NamedStyle = styls.Item(NamedStyle.BuiltIn.Normal)
{code}
{example}