NinjaScript > Language Reference > Drawing >

IHorizontalLine

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents an interface that exposes information regarding a Horizontal Line IDrawObject.

 

Methods and Properties

Y

An double value representing the y-value the object is drawn at

Pen

The Pen object used to draw the object

 

 

Examples

protected override void OnBarUpdate()
{

    // Draws a Horizontal Line
    IHorizontalLine hLine = DrawHorizontalLine("tag1", 1000, Color.Black);

 

    // Print the y-value the line is drawn at

    Print(hLine.Y);
}