---
title: "Class DelegatesUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common/DelegatesUtils/"
---

# Class DelegatesUtils

> **Inheritance:** `System.Object` -> DelegatesUtils

###### **Namespace**: [Aurigma.DesignAtoms.Common](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class DelegatesUtils
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### DelegatesUtils

```csharp
public DelegatesUtils()
```

## Methods

### CreateAutoUnsubscribeEventHandler

```csharp
public static EventHandler<DrawEventArgs> CreateAutoUnsubscribeEventHandler(Drawer drawer, Action<object, DrawEventArgs> action)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.Drawer` | *drawer* |  |
| `System.Action<System.Object,Aurigma.GraphicsMill.AdvancedDrawing.DrawEventArgs>` | *action* |  |

##### Returns

`System.EventHandler<Aurigma.GraphicsMill.AdvancedDrawing.DrawEventArgs>`
