> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On Region Control Draw

> Customize region drawing with the On Region Control Draw event, which runs before FlexiCapture redraws a field region and exposes a drawing context.

## When it is launched

The script is launched prior to redrawing the region.

* If the **DrawDefault.Value** property is set to **true**, drawing the region will be cancelled.
* If the **DrawDefault.Value** property is set to **false**, the region will be redrawn.

By default, the value of the **DrawDefault** parameter is **false**.

## Parameters

| **Name**    | **Type**                                                                   | **Access** | **Description**                                  |
| ----------- | -------------------------------------------------------------------------- | ---------- | ------------------------------------------------ |
| Context     | [IFieldRegionControl](/flexi-capture/appendix/scripts-shell/ifieldcontrol) | Read/write | The region                                       |
| DrawContext | [IDrawContext](/flexi-capture/appendix/scripts-shell/idrawcontext)         | Read/write | The drawing context                              |
| DrawDefault | [IBoolean](/flexi-capture/appendix/scripts-shell/iboolean)                 | Read/write | Specifies whether to continue drawing the region |
