Line Class

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Indicator > AddLine() >

Line Class

Previous page Return to chapter overview Next page

Definition

Objects derived from the Line class are used to characterize how an oscillator line is visually displayed (plotted) on a chart.

 

 

Properties

Brush

The System.Windows.Media.Brush used to construct the line (reference)

BrushDX

A SharpDX.Direct2D1.Brush used to actually render the line

 

Note:  To avoid and resolve access violation exceptions, please see Warning and examples remarked below

DashStyleDX

A SharpDX.Direct2D1.DashStyle used to render the stroke style

 

Note:  To avoid and resolve access violation exceptions, please see Warning and examples remarked below

DashStyleHelper

A dashstyle used to construct the stroke. Possible values are:

 

DashStyleHelper.Dash

DashStyleHelper.DashDot

DashStyleHelper.DashDotDot

DashStyleHelper.Dot

DashStyleHelper.Solid

Name

A string representing the name of the line

RenderTarget

The RenderTarget drawing context used for the line.

 

Note: This property must be set before accessing a stroke's BrushDX property. Please see Warning and examples remarked below

StrokeStyle

A SharpDX.Direct2D1.StrokeStyle

Value

A double representing the value of the line

Width

A float representing the width in pixels

 

 

Examples

See the AddLine() method for examples.