IsTransparent

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Chart Style >

IsTransparent

Previous page Return to chapter overview Next page

Definition

Indicates the bars in the ChartStyle are transparent.

 

Property Value

A bool which, when true, indicates that the UpBrush, DownBrush, and Stroke.Brush are all set to transparent. Returns false if any of the three are not transparent.

 

Syntax

IsTransparent

 

 

Example

ns

protected override void OnStateChange()
{
  if (State == State.Configure)
  {
      //Print a message if the UpBrush, DownBrush, and Stroke.Brush are all transparent
      if (IsTransparent)
          Print("All bars are currently set to transparent");
  }
}