Triangle

<< Click to Display Table of Contents >>

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

Triangle

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding a Triangle IDrawingTool.

 

Methods and Properties

StartAnchor

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

MiddleAnchor

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

EndAnchor

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

AreaBrush

A Brush class representing the fill color of the draw object

AreaOpacity

An int value representing the opacity of the area color

OutlineStroke

The Stroke object used to draw the object's outline

 

 

 

Example

ns

// Instantiate a Triangle object
Triangle myTri = Draw.Triangle(this, "tag1", 4, Low[4], 3, High[3], 1, Low[1], Brushes.Blue);            
 
// Change the object's AreaOpacity
myTri.AreaOpacity = 100;