---
title: "ICanvasRenderingContext2D.IsPointInPath"
url: "https://reference.aspose.com/html/net/aspose.html.dom.canvas/icanvasrenderingcontext2d/ispointinpath/"
product: "Aspose.HTML for .NET API Reference"
description: "ICanvasRenderingContext2D IsPointInPath method. Reports whether or not the specified point is contained in the current path"
---

## IsPointInPath(*double, double*) {#ispointinpath_2}

Reports whether or not the specified point is contained in the current path.

```csharp
public bool IsPointInPath(double x, double y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Double | The X coordinate of the point to check. |
| y | Double | The Y coordinate of the point to check. |

### Return Value

Returns true if the point is inside the area contained by the filling of a path, otherwise false.

### See Also

* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## IsPointInPath(*double, double, [CanvasFillRule](../../canvasfillrule/)*) {#ispointinpath_3}

Reports whether or not the specified point is contained in the current path.

```csharp
public bool IsPointInPath(double x, double y, CanvasFillRule fillRule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Double | The X coordinate of the point to check. |
| y | Double | The Y coordinate of the point to check. |
| fillRule | CanvasFillRule | The algorithm by which to determine if a point is inside a path or outside a path. |

### Return Value

Returns true if the point is inside the area contained by the filling of a path, otherwise false.

### See Also

* enum [CanvasFillRule](../../canvasfillrule/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## IsPointInPath(*[Path2D](../../path2d/), double, double*) {#ispointinpath}

Reports whether or not the specified point is contained in the current path.

```csharp
public bool IsPointInPath(Path2D path, double x, double y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | Path2D | A Path2D path to check. |
| x | Double | The X coordinate of the point to check. |
| y | Double | The Y coordinate of the point to check. |

### Return Value

Returns true if the point is inside the area contained by the filling of a path, otherwise false.

### See Also

* class [Path2D](../../path2d/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## IsPointInPath(*[Path2D](../../path2d/), double, double, [CanvasFillRule](../../canvasfillrule/)*) {#ispointinpath_1}

Reports whether or not the specified point is contained in the current path.

```csharp
public bool IsPointInPath(Path2D path, double x, double y, CanvasFillRule fillRule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | Path2D | A Path2D path to check. |
| x | Double | The X coordinate of the point to check. |
| y | Double | The Y coordinate of the point to check. |
| fillRule | CanvasFillRule | The algorithm by which to determine if a point is inside a path or outside a path. |

### Return Value

Returns true if the point is inside the area contained by the filling of a path, otherwise false.

### See Also

* class [Path2D](../../path2d/)
* enum [CanvasFillRule](../../canvasfillrule/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
