---
id: "P:cAlgo.API.Control.FontSize"
kind: "property"
type: "T:cAlgo.API.Control"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Control/FontSize/"
---

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

# Control.FontSize

Member of [Control](https://help.ctrader.com/ctrader-algo/references/Controls/Control/index.md).

## FontSize

Gets or sets the font size.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public double FontSize {get; set;}
```

Python:

```python
control.FontSize: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var textBlock = new TextBlock { Text = SymbolName, FontSize = 24 };
Chart.AddControl(textBlock);
Print("Font size: {0}", textBlock.FontSize);
```

Python:

```python
textBlock = TextBlock()
textBlock.Text = api.SymbolName
textBlock.FontSize = 24
api.Chart.AddControl(textBlock)
api.Print(f"Font size: {textBlock.FontSize}")
```

