ZOrderType

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool >

ZOrderType

Previous page Return to chapter overview Next page

Definition

Determines the order in which the drawing tool will be rendered. This will help control the ZOrder index between chart objects

 

Property Value

An enum determining the drawing tool's ZOrder type.  Possible values are:

 

DrawingToolZOrder.Normal

Default behavior, drawing tools are rendered as they appear in the ZOrder index

DrawingToolZOrder.AlwaysDrawnFirst

Ensures the drawing tool is always the first to be rendered

DrawingToolZOrder.AlwaysDrawnLast

Ensures the drawing tool is always the last object to be rendered

 

 

Syntax

ZOrderType

 

 

Examples

ns


protected override void OnStateChange()
{
  if (State == State.SetDefaults)
  {
    Name               = @"My Drawing Tool";
       
    // always draw this last
    ZOrderType           = DrawingToolZOrder.AlwaysDrawnLast;
  }
  else if (State == State.Configure)
  {
  }
}