ChartDrawing
interface cAlgo.API
DesktopCLICloud
Represents the Drawing chart object.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
public interface ChartDrawing
Namespace: cAlgo.API · Group: Drawings · Implements: ChartObject
Examples
foreach (var drawing in Chart.FindAllObjects<ChartDrawing>())
{
drawing.IsLocked = true;
Print("Pencil drawing: {0} | Locked: {1}", drawing.Name, drawing.IsLocked);
}
for drawing in api.Chart.FindAllObjects(ChartObjectType.Drawing):
drawing.IsLocked = True
api.Print(f"Pencil drawing: {drawing.Name} | Locked: {drawing.IsLocked}")
Inherited members
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive