ReferencesCommonDrawingDraw.Rectangle()RectangleAsk a question|Copy page|View as Markdown|More actionsThis page is for NinjaScript.Definition Represents an interface that exposes information regarding a Rectangle IDrawingTool. Methods and Properties ParameterDescriptionStartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing objectEndAnchorAn IDrawingTool’s ChartAnchor representing the end point of the drawing objectAreaBrushA Brush object representing the fill color of the draw objectAreaOpacityAn int value representing the opacity of the area colorOutlineStrokeThe Stroke object used to draw the object’s outline Examples // Instantiate a Rectangle objectRectangle myRec = Draw.Rectangle(this, "tag1", 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.Blue);// Set the object's AreaBrush to BluemyRec.AreaBrush = Brushes.Blue;