---
id: "P:cAlgo.API.ChartDraggable.IsVisible"
kind: "property"
type: "T:cAlgo.API.ChartDraggable"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Draggables/ChartDraggable/IsVisible/"
---

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

# ChartDraggable.IsVisible

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

## IsVisible

Get / set visibility of draggable.

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

- CLI: Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.
- Cloud: Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.

C#:

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

Python:

```python
chartDraggable.IsVisible: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var draggable = Chart.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName, BackgroundColor = Color.Black };
draggable.IsVisible = Positions.Count > 0;
Print("Draggable visible: {0}", draggable.IsVisible);
```

Python:

```python
draggable = api.Chart.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.IsVisible = api.Positions.Count > 0
api.Print(f"Draggable visible: {draggable.IsVisible}")
```

