DrawnBy

View as Markdown

Definition

Represents the NinjaScript object which created the drawing object.

Property Value

The NinjaScript object which created the drawing tool; this value will be null if drawn by a user.

Syntax

DrawnBy

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // if the drawing tool was not created by a user,
4 // print the name of the object that it was created
5 if(!IsUserDrawn)
6 Print(DrawnBy.Name);
7}