HorizontalLine

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Drawing > Draw.HorizontalLine() >

HorizontalLine

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding a Horizontal Line IDrawingTool.

 

Methods and Properties

StartAnchor

An IDrawingTool's ChartAnchor representing the starting point of the drawing object

EndAnchor

An IDrawingTool's ChartAnchor representing the end point of the drawing object

Stroke

A Stroke object used to draw the object

 

 

 

Example

ns


// Instantiate a HorizontalLine object
HorizontalLine myLine = Draw.HorizontalLine(this, "tag1", 1000, Brushes.Black);
 
// Set a new Stroke for the object
myLine.Stroke = new Stroke(Brushes.Green, DashStyleHelper.Dash, 5);