# Javascript: TXTextControl.Color.r Property

> The red component of the color.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.Color.r Property
- **139 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/r-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/r-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/r-property/llms-full.txt

---

### Description

The red component of the color.

### Syntax

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

### Examples

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

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.Color.g Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/g-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.ComponentRenderMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/componentrendermode-enumeration/llms-full.txt)
