# Javascript: Selection.Attribute Enumeration

> Determines a certain selection attribute.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Selection.Attribute Enumeration
- **617 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/attribute-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/attribute-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/attribute-enumeration/llms-full.txt

---

### Description

Determines a certain selection attribute.

### Members

| Member | Description |
|---|---|
| Baseline | Specifies the attribute set through the Baseline property. |
| Bold | Specifies the attribute set through the Bold property. |
| Italic | Specifies the attribute set through the Italic property. |
| FontName | Specifies the attribute set through the FontName property. |
| FontSize | Specifies the attribute set through the FontSize property. |
| Strikeout | Specifies the attribute set through the Strikeout property. |
| Underline | Specifies the attribute set through the Underline property. |
| ForeColor | Specifies the attribute set through the ForeColor property. |
| TextBackColor | Specifies the attribute set through the TextBackColor property. |
| Start | Specifies the attribute set through the Start property. |
| Length | Specifies the attribute set through the Length property. |
| Text | Specifies the attribute set through the Text property. |
| FormattingStyle | Specifies the attribute set through the FormattingStyle property. |
| Culture | Specifies the attribute set through the Culture property. |
| All | Specifies all attributes of the Selection. |

### Examples

The following example uses `TXTextControl.Selection.Attribute.Baseline` (specifies the attribute set through the Baseline property.) in a document-editing workflow.

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

TXTextControl.selection.isCommonSelectionValueSelected(
    TXTextControl.Selection.Attribute.Baseline,
    function() {
        console.log("is common selection value selected completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Selection Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/llms-full.txt)
- **Next:** [Javascript: Selection.changeCapitalization Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/changecapitalization-method/llms-full.txt)
