An enumeration of the element attributes.
Use attributes to compose custom styles. For example:
// Define a style with yellow background. var highlightStyle = {}; highlightStyle[DocumentApp.Attribute.BACKGROUND_COLOR] = '#FFFF00'; highlightStyle[DocumentApp.Attribute.BOLD] = true; // Insert "Hello", highlighted. DocumentApp.getActiveDocument().editAsText() .insertText(0, 'Hello\n') .setAttributes(0, 4, highlightStyle);
An enumeration of the element attributes.
Use attributes to compose custom styles. For example: