Javascript: FormattingStyle.setName Method
Description
Sets the name of the style.
Syntax
<void> FormattingStyle.setName(<String> name, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| name | The name of the style. |
| callback | Is called when the operation completed. |
Examples
The following example demonstrates FormattingStyle.setName in a practical document-editing workflow. It sets the name of the style.
function configureName(formattingStyle) {
formattingStyle.setName(
"Invoice Heading",
function() {
console.log("set name completed.");
}
);
}