DS Server

FormattingStyleCollection Object

Object|Introduced in 28.0

Description

The FormattingStyleCollection contains a collection of formatting styles.

Syntax

FormattingStyleCollection

Examples

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

MethodDescription
elementAtReturns the element at a specified index in the collection. (Inherited from Collection.)
forEachExecutes a callback function for each element. (Inherited from Collection.)
getCountGets the number of elements contained in the collection. (Inherited from Collection.)
removeRemoves a formatting style from the collection.