Region

<< Click to Display Table of Contents >>

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

Region

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding a Region IDrawingTool.

 

Methods and Properties

StartAnchor

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

EndAnchor

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

AreaOpacity

An int value representing the opacity of the area color

AreaBrush

A Brush object representing the fill color of the draw object

OutlineStroke

A Stroke used for the outline of the region

 

 

 

Example

ns


// Instantiate a Region object
Region myRegion = Draw.Region(this, "tag1", CurrentBar, 0, Bollinger(2, 14).Upper, Bollinger(2, 14).Lower, null, Brushes.Blue, 50);          
 
// Set the object's OutlineStroke to a new Stroke
myRegion.OutlineStroke = new Stroke(Brushes.Red, DashStyleHelper.Solid, 3);