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

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

# CornerRadius.TopLeft

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

## TopLeft

Gets or sets the radius of the top-left corner.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
cornerRadius.TopLeft: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var radius = new CornerRadius(4, 8, 12, 16);
radius.TopLeft = 6;
Print("Top left radius: {0}", radius.TopLeft);
```

Python:

```python
radius = CornerRadius(4, 8, 12, 16)
radius.TopLeft = 6
api.Print(f"Top left radius: {radius.TopLeft}")
```

