
# IPCB_RegionShape2 interface

*No description yet.*

```csharp
public interface IPCB_RegionShape2
```

**Namespace:** PCB · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [Edge](#edge) | [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md) | get |  |
| [EdgeCount](#edgecount) | `int` | get |  |

### Edge

*No description yet.*

```csharp
IPCB_ShapeEdge GetState_Edge(int argI);
```

**Type:** [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md) · **Access:** read-only · **Index:** `argI` (`int`)

The accessors are extension methods of `IPCB_RegionShape2Helper` (`using PCB;`).

### EdgeCount

*No description yet.*

```csharp
int GetState_EdgeCount();
```

**Type:** `int` · **Access:** read-only

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [Add](#add) | [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md) |  |
| [ClearEdges](#clearedges) | `void` |  |
| [Delete](#delete) | `void` |  |
| [Insert](#insert) | [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md) |  |
| [UpdateContourFromShape](#updatecontourfromshape) | `void` |  |

### Add

*No description yet.*

```csharp
IPCB_ShapeEdge Add(TPCB_ShapeEdgeType argType);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argType` | [TPCB_ShapeEdgeType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPCB_ShapeEdgeType.md) | value |

**Returns:** [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md)

Extension method of `IPCB_RegionShape2Helper` (`using PCB;`).

### ClearEdges

*No description yet.*

```csharp
void ClearEdges();
```

**Returns:** nothing (`void`)

### Delete

*No description yet.*

```csharp
void Delete(int argIndex);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |

**Returns:** nothing (`void`)

### Insert

*No description yet.*

```csharp
IPCB_ShapeEdge Insert(int argIndex, TPCB_ShapeEdgeType argType);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |
| `argType` | [TPCB_ShapeEdgeType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TPCB_ShapeEdgeType.md) | value |

**Returns:** [IPCB_ShapeEdge](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ShapeEdge.md)

Extension method of `IPCB_RegionShape2Helper` (`using PCB;`).

### UpdateContourFromShape

*No description yet.*

```csharp
void UpdateContourFromShape(bool argConserveExistingHoles);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argConserveExistingHoles` | `bool` | value |

**Returns:** nothing (`void`)

## Returned by

[IPCB_CopperBodyShape.Region](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_CopperBodyShape.md#region)
