Skip to content

ChartDraggable.ShowGrip

property · ChartDraggable · cAlgo.API Since 5.2

DesktopCLICloud

Get / set move grip visibility (default: true).

Environment behaviour

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

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

Definition

bool ShowGrip {get; set;}
chartDraggable.ShowGrip: bool

Returns bool

Examples

var draggable = Chart.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName, BackgroundColor = Color.Black };
draggable.ShowGrip = false;
Print("Draggable grip shown: {0}", draggable.ShowGrip);
draggable = api.Chart.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.ShowGrip = False
api.Print(f"Draggable grip shown: {draggable.ShowGrip}")