Skip to content

DrawingColorChangedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for the drawing color changed event.

Definition

public class DrawingColorChangedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    Application.DrawingColorChanged += OnDrawingColorChanged;
}

private void OnDrawingColorChanged(DrawingColorChangedEventArgs args)
{
    Print("Drawing color changed to {0}", args.DrawingColor);
}
def on_start(self):
    api.Application.DrawingColorChanged += self.on_drawing_color_changed

def on_drawing_color_changed(self, args):
    api.Print(f"Drawing color changed to {args.DrawingColor}")

Properties

Name Description
DrawingColorDesktopCLICloudColor Gets the drawing color.

See also