Polygon

<< Click to Display Table of Contents >>

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

Polygon

Previous page Return to chapter overview Next page

Definition

Represents an interface that exposes information regarding a Polyon 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 Polygon object
Polygon myPolygon = Draw.Polygon(this, "tag1", false, 20, 194, 10, 184, 13, 176, 25, 182);
 
// Set a new area brush for the object
myPolygon.AreaBrush = Brushes.Green;