Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

This class is used to store the styles of a document. It is essentially a collection of named styles.

C#
vb.net

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.

Examples

C#
vb.net

Indexers

Name

Description

Item(Int32)

Returns a NamedStyle object that represents the named style that has the specified ID.

Item(NamedStyle.BuiltIn)

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

Item(String)

Returns a NamedStyle object that represents the named style that has the specified string version of its name.

Methods

Name

Description

Length()

Returns an int that represents the number of styles in this collection.
  • No labels