Rectangle

View as Markdown

Definition

Represents an interface that exposes information regarding a Rectangle IDrawingTool.

Methods and Properties

ParameterDescription
StartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
EndAnchorAn IDrawingTool’s ChartAnchor representing the end point of the drawing object
AreaBrushA Brush object representing the fill color of the draw object
AreaOpacityAn int value representing the opacity of the area color
OutlineStrokeThe Stroke object used to draw the object’s outline

Examples

1// Instantiate a Rectangle object
2Rectangle myRec = Draw.Rectangle(this, "tag1", 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.Blue);
3
4// Set the object's AreaBrush to Blue
5myRec.AreaBrush = Brushes.Blue;