type property
Style.type property
Gets the style type (paragraph or character).
get type(): Aspose.Words.StyleType
Examples
Shows how to access a document’s style collection.
let doc = new aw.Document();
expect(doc.styles.count).toEqual(4);
// Enumerate and list all the styles that a document created using Aspose.words contains by default.
for (var style of doc.styles)
{
console.log(`Style name:\t\"${style.name}\", of type \"${style.type}\"`);
console.log(`\tSubsequent style:\t${style.nextParagraphStyleName}`);
console.log(`\tIs heading:\t\t\t${style.isHeading}`);
console.log(`\tIs QuickStyle:\t\t${style.isQuickStyle}`);
expect(style.document.referenceEquals(doc)).toBe(true);
}
See Also
- module Aspose.Words
- class Style