ZOrderType

View as Markdown

Definition

Determines the order in which sthe 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:

NameDescription
DrawingToolZOrder.NormalDefault behavior, drawing tools are rendered as they appear in the ZOrder index
DrawingToolZOrder.AlwaysDrawnFirstEnsures the drawing tool is always the first to be rendered
DrawingToolZOrder.AlwaysDrawnLastEnsures the drawing tool is always the last object to be rendered

Syntax

ZOrderType

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 Name = @"My Drawing Tool";
6
7 // always draw this last
8 ZOrderType = DrawingToolZOrder.AlwaysDrawnLast;
9 }
10 else if (State == State.Configure)
11 {
12 }
13}