> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Rectangle

## Definition

Represents an interface that exposes information regarding a Rectangle **IDrawingTool**.

## Methods and Properties

| Parameter     | Description                                                                             |
| ------------- | --------------------------------------------------------------------------------------- |
| 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      |
| AreaBrush     | A **Brush** object 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                                 |

## Examples

```csharp
// Instantiate a Rectangle object
Rectangle myRec = Draw.Rectangle(this, "tag1", 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.Blue);

// Set the object's AreaBrush to Blue
myRec.AreaBrush = Brushes.Blue;
```