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

# Class PathExtensionMethods

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

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

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

```csharp title="Syntax"
public static class PathExtensionMethods
```

## 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`

## Methods

### ToAdvancedPath

```csharp
public static Path ToAdvancedPath(this Path sourcePath)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md) | *sourcePath* |  |

##### Returns

`Aurigma.GraphicsMill.AdvancedDrawing.Path`

### ToGraphicsPath

```csharp
public static GraphicsPath ToGraphicsPath(this Path path)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md) | *path* |  |

##### Returns

`System.Drawing.Drawing2D.GraphicsPath`

### GetBounds

```csharp
public static RectangleF GetBounds(this Path path)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md) | *path* |  |

##### Returns

`System.Drawing.RectangleF`

### ToModel

```csharp
public static Path ToModel(this Path advancedPath)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.Path` | *advancedPath* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md)

### CreateEllipsePath

```csharp
public static Path CreateEllipsePath(float x, float y, float width, float height)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Single` | *x* |  |
| `System.Single` | *y* |  |
| `System.Single` | *width* |  |
| `System.Single` | *height* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md)

### CreateEllipsePath

```csharp
public static Path CreateEllipsePath(RectangleF rectangle)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Drawing.RectangleF` | *rectangle* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md)

### CalculateBounds

```csharp
public static RectangleF CalculateBounds(this Path path)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md) | *path* |  |

##### Returns

`System.Drawing.RectangleF`

### IsRectangular

```csharp
public static bool IsRectangular(this Path path, double tolerance = 0.01)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Path](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Path.md) | *path* |  |
| `System.Double` | *tolerance* |  |

##### Returns

`System.Boolean`

### IsRectangular

```csharp
public static bool IsRectangular(this Path path, double tolerance = 0.01)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.Path` | *path* |  |
| `System.Double` | *tolerance* |  |

##### Returns

`System.Boolean`

### IsIntersectsWithRectangle

```csharp
public static bool IsIntersectsWithRectangle(this Path path, RectangleF rectangle)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.Path` | *path* |  |
| `System.Drawing.RectangleF` | *rectangle* |  |

##### Returns

`System.Boolean`
