Description |
---|
Excerpt |
---|
This class is used to store the styles of a document. It is essentially a collection of named styles. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}This class is used to store the styles of a document. It is essentially a collection of named styles.{excerpt}
{signature:C#}
[DefaultMember("Item")]
public sealed class Styles
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
<DefaultMember("Item")> _
Public NotInheritable Class Styles
|
Remarks |
---|
You cannot create styles programmatically. You can only access Named Styles from an existing document. At this time, styles are read-only, but in the future you will be able to modify Named Styles using WordWriter. The following example demonstrates how to get the styles from a document. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Indexers |
---|
...
Name
...
Description
{code} {example} {indexers} ||Name||Description|| |[Item(Int32) |
...
|Styles.Item(Int32) |
...
]|{excerpt-include:Styles.Item(Int32) |
...
|nopanel |
...
=true}| |[Item(NamedStyle.BuiltIn) |
...
|Styles.Item(NamedStyle.BuiltIn) |
...
]|{excerpt-include:Styles.Item(NamedStyle.BuiltIn) |
...
|nopanel |
...
=true}| |[Item(String) |
...
|Styles.Item(String) |
...
]|{excerpt-include:Styles.Item(String) |
...
|nopanel |
...
Methods |
---|
...
Name
...
Description
...
...
=true}| {methods} ||Name||Description|| |[Length()|Styles.Length() |
...
]|{excerpt-include:Styles.Length() |
...
|nopanel |
...
=true}| |