You can get a collection of styles defined in the document using the Styles property. This collection holds both the built-in and user-defined styles in a document. A particular style could be obtained by its name/alias, style identifier, or index.
Styles and formatting are discussed in more detail later in this documentation.
Example GetStyles
Shows how to get access to the collection of styles defined in the document.
[C#]
Document doc = new Document();
StyleCollection styles = doc.Styles;
foreach (Style style in styles)
Console.WriteLine(style.Name);
[Visual Basic]
Dim doc As Document = New Document()
Dim styles As StyleCollection = doc.Styles
For Each style As Style In styles
Console.WriteLine(style.Name)
Next style
[Java]
Document doc = new Document();
StyleCollection styles = doc.getStyles();
for (Style style : styles)
System.out.println(style.getName());