Ellipse

<< Click to Display Table of Contents >>

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

Ellipse

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding an Ellipse 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

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


// Paint a red ellipse on the current bar
Ellipse myEllipse = Draw.Ellipse(this, "tag1", true, 5, Close[5], 0, Close[0], Brushes.Red, Brushes.Red, 5);
 
// Apply the ellipse as a Global Drawing Object
myEllipse.IsGlobalDrawingTool = true;