# Javascript: InlineStyle.Attributes Enumeration

> Determines the style's attributes.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: InlineStyle.Attributes Enumeration
- **572 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inlinestyle/attributes-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inlinestyle/attributes-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inlinestyle/attributes-enumeration/llms-full.txt

---

### Description

Determines the style's attributes.

### Members

| Member | Description |
|---|---|
| FontName | Specifies the attribute set through the style's FontName property. |
| FontSize | Specifies the attribute set through the style's FontSize property. |
| Bold | Specifies the attribute set through the style's Bold property. |
| Italic | Specifies the attribute set through the style's Italic property. |
| Underline | Specifies the attribute set through the style's Underline property. |
| Strikeout | Specifies the attribute set through the style's Strikeout property. |
| Baseline | Specifies the attribute set through the style's Baseline property. |
| ForeColor | Specifies the attribute set through the style's ForeColor property. |
| TextBackColor | Specifies the attribute set through the style's TextBackColor property. |

### Examples

The following example uses `TXTextControl.Inlinestyle.Attributes.FontName` (specifies the attribute set through the style's FontName property.) in a document-editing workflow.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function applyAttributes(inlineStyle) {
    inlineStyle.isInheritedFromParagraph(
        TXTextControl.Inlinestyle.Attributes.FontName,
        function(result) {
            if (result) {
                console.log("is inherited from paragraph is available.");
            } else {
                console.warn("is inherited from paragraph is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [InlineStyle Object](https://docs.textcontrol.com/ds-server/reference/javascript/inlinestyle/llms-full.txt)
- **Next:** [Javascript: InlineStyle.isInheritedFromParagraph Method](https://docs.textcontrol.com/ds-server/reference/javascript/inlinestyle/isinheritedfromparagraph-method/llms-full.txt)
