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

# IsLocked

## Definition

Determines if the drawing tool should be locked in place. This property can be set either manually through the UI or explicitly through code.

## Property Value

A bool value which when true indicates that the drawing tool is locked; otherwise false. Default is set to false.

For Drawing tools which are drawn by an indicator or strategy, this property will default to true.

## Syntax

`IsLocked`

## Examples

```csharp
public override void OnMouseMove(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, Point point)
{
   if (IsLocked) //if the object is locked, do not attempt to move
     return;
}
```