> 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.

# VerticalLine

## Definition

Represents an interface that exposes information regarding a Vertical Line [IDrawingTool](/developer/desktop-sdk/references/common/drawing/idrawingtool).

## Methods and Properties

| Parameter   | Description                                                                                                                                        |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| StartAnchor | An [IDrawingTool's ChartAnchor](/developer/desktop-sdk/references/drawing-tools/chartanchor) representing the starting point of the drawing object |
| EndAnchor   | An [IDrawingTool's ChartAnchor](/developer/desktop-sdk/references/drawing-tools/chartanchor) representing the end point of the drawing object      |
| Stroke      | A [Stroke](/developer/desktop-sdk/references/common/charts/stroke-class) object used to draw the object                                            |

## Examples

```csharp
// Instantiate a VerticalLine object  
VerticalLine myLine = Draw.VerticalLine(this, "tag1", 10, Brushes.Black);  
   
// Change the object's Stroke  
myLine.Stroke = new Stroke(Brushes.BlanchedAlmond, DashStyleHelper.Dot, 5);
```