## ICanvasRenderingContext2D.DrawFocusIfNeeded method

If a given element is focused, this method draws a focus ring around the current path.

```csharp
public void DrawFocusIfNeeded(Element element)
```

| Parameter | Type | Description |
| --- | --- | --- |
| element | Element | The element to check whether it is focused or not. |

### See Also

* class [Element](../../../aspose.html.dom/element/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
