# Javascript: TXTextControl.Color.a Property

> The alpha component of the color.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.Color.a Property
- **139 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-color/a-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-color/a-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-color/a-property/llms-full.txt

---

### Description

The alpha component of the color.

### Syntax

```javascript
<number> TXTextControl.Color.a
```

### Examples

The following example demonstrates `TXTextControl.Color.a` in a practical document-editing workflow. The alpha component of the color.

```javascript
function inspectA(color) {
    const a = color.a;
    console.log("a:", a);
}
```

---

## Nearby

- **Previous:** [TXTextControl.Color Object](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-color/llms-full.txt)
- **Next:** [Javascript: TXTextControl.Color.b Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-color/b-property/llms-full.txt)
