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

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

# CornerRadius.TopRight

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

## TopRight

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

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
cornerRadius.TopRight: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var radius = new CornerRadius(4, 8, 12, 16);
radius.TopRight = 10;
Print("Top right radius: {0}", radius.TopRight);
```

Python:

```python
radius = CornerRadius(4, 8, 12, 16)
radius.TopRight = 10
api.Print(f"Top right radius: {radius.TopRight}")
```

