DownBrush

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Chart Style >

DownBrush

Previous page Return to chapter overview Next page

Definition

A Brush object used to determine the color to paint the down bars for the ChartStyle.

 

Note: This Windows Presentation Forms (WPF) implementation of the Brush class is not directly used to paint bars on the chart. Instead it is converted to a SharpDX Brush in the DownBrushDX property. This property is used to capture user input for changing brush colors.

 

 

Property  Value

A WPF Brush object used to paint the down bars

 

Syntax

DownBrush

 

Example

ns

protected override void OnStateChange()
{
  if (State == State.Configure)
  {
      // Set a new name for the DownBrush property
      SetPropertyName("DownBrush", "DecliningBrush");
  }
}