IsSeparateZOrder

View as Markdown

Definition

Determines the ZOrder of the drawing object will be different than the NinjaScript object that drew it. When false the drawing object will share the same ZOrder.

Property Value

This property returns true if the object is drawn on a separate ZOrder; otherwise, false. Default set to false.

Syntax

IsSeparateZOrder

Example

1protected override void OnBarUpdate()
2{
3 // Instantiate a Dot object
4 Dot myDot = Draw.Dot(this, "NewDot", true, 5, High[5], Brushes.Black);
5
6 // Set the Dot object to use a separate Z-Order than the indicator that created it
7 myDot.IsSeparateZOrder = true;
8}