---
id: "P:cAlgo.API.ChartStaticText.IsUnderlined"
kind: "property"
type: "T:cAlgo.API.ChartStaticText"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartStaticText/IsUnderlined/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartStaticText.IsUnderlined

Member of [ChartStaticText](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartStaticText/index.md).

## IsUnderlined

Gets or sets if the text is Underlined or not

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
bool IsUnderlined {get; set;}
```

Python:

```python
chartStaticText.IsUnderlined: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var text = Chart.DrawStaticText("info", SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.IsUnderlined = true;
Print("Static text is underlined: {0}", text.IsUnderlined);
```

Python:

```python
text = api.Chart.DrawStaticText("info", api.SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.IsUnderlined = True
api.Print(f"Static text is underlined: {text.IsUnderlined}")
```

