Skip to content

ApplicationDraggable.IsVisible

property · ApplicationDraggable · cAlgo.API Since 5.2

DesktopCLICloud

Get / set visibility of draggable.

Environment behaviour

CLI — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.

Cloud — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.

Definition

bool IsVisible {get; set;}
applicationDraggable.IsVisible: bool

Returns bool

Examples

var draggable = Application.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName };
draggable.IsVisible = !draggable.IsVisible;
Print("Draggable visible: {0}", draggable.IsVisible);
draggable = api.Application.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.IsVisible = not draggable.IsVisible
api.Print(f"Draggable visible: {draggable.IsVisible}")