UpBrush

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Chart Style >

UpBrush

Previous page Return to chapter overview Next page

Definition

A Brush object used to determine the color to paint the up 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 UpBrushDX property. This property is used to capture user input for changing brush colors.

 

 

Property  Value

A WPF Brush object used to paint the up bars

 

Syntax

UpBrush

 

 

Examples

ns

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