# Javascript: TXTextControl.Color.g Property

> The green 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.g Property
- **139 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/g-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/g-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-color/g-property/llms-full.txt

---

### Description

The green component of the color.

### Syntax

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

### Examples

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

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

---

## Nearby

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