---
title: "ICanvasRenderingContext2D.RemoveHitRegion"
url: "https://reference.aspose.com/html/net/aspose.html.dom.canvas/icanvasrenderingcontext2d/removehitregion/"
product: "Aspose.HTML for .NET API Reference"
description: "ICanvasRenderingContext2D RemoveHitRegion method. Removes the hit region with the specified id from the canvas"
---

## ICanvasRenderingContext2D.RemoveHitRegion method

Removes the hit region with the specified id from the canvas.

```csharp
public void RemoveHitRegion(string id)
```

| Parameter | Type | Description |
| --- | --- | --- |
| id | String | A string representing the id of the region that is to be removed. |

### See Also

* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
