EasyLanguage Object Reference

DrawingObject Class

A base class that all drawing objects derive from, which contains properties and events common to all drawing objects as defined below. See About Drawing Objects for more information on using drawing objects.

The Persist property allows the default behavior of drawing objects created in an indicator using the “Update value intra-bar” setting to be overridden. By default, the EasyLanguage run-time environment will not allow multiple instances of a drawing object to be created on an intra-bar basis. This behavior is intended to simplify the code required when creating drawing objects. If the Persist property is set to True, multiple instances can be created. This property is useful when creating drawing objects in events not related to bar updates. Note this is an advanced feature and in most cases, should be left with the default value False.

Namespace: elsystem.object

[ Expand All ]
Properties
  Name Type Description
Public property Color object Gets or sets the Color object representing the color of the drawing object (or border color in the case of Rectangle and Ellipse objects). See Color class.
Public property Count int Gets an integer representing the number of points in the drawing object collection.
Public property Persist boolean True if the drawing object instance should remain displayed between intra-bar updates. The default behavior is False which expects that your code will recreate the drawing object on each tick update.
Public property Points[Indx] object Gets or sets a element within the collection of points used to create the drawing object.
Public property Tag object Gets or sets an arbitrary value that allows you to store additional info with the drawing object.
Events
  Name Description
Public event

Click

Occurs when the DrawingObject is clicked. The handler method's args parameter should be of type DrawingObjectEventArgs.
Inheritance Hierarchy

elsystem.Object

  elsystem.DrawingObject