FormattingStyleCollection Object
Description
The FormattingStyleCollection contains a collection of formatting styles.
Syntax
FormattingStyleCollectionExamples
The following example demonstrates FormattingStyleCollection in a practical document-editing workflow. The FormattingStyleCollection contains a collection of formatting styles.
function inspectFormattingStyleCollection(formattingStyles) {
console.log("FormattingStyleCollection object:", formattingStyles);
}Members
Methods
| Method | Description |
|---|---|
| elementAt | Returns the element at a specified index in the collection. (Inherited from Collection.) |
| forEach | Executes a callback function for each element. (Inherited from Collection.) |
| getCount | Gets the number of elements contained in the collection. (Inherited from Collection.) |
| remove | Removes a formatting style from the collection. |