
# ISch_HarnessCavityPartsOwner interface

*No description yet.*

```csharp
public interface ISch_HarnessCavityPartsOwner
```

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

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [First](#first) | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | get; set |  |
| [Item](#item) | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | get; set |  |

### First

*No description yet.*

```csharp
ISch_HarnessComponent GetFirst(THarnessCavityPartType argItemType);
bool SetFirst(THarnessCavityPartType argItemType, ISch_HarnessComponent argItem);
```

**Type:** [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) · **Access:** read/write · **Index:** `argItemType` ([THarnessCavityPartType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/THarnessCavityPartType.md))

The accessors are extension methods of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`).

### Item

*No description yet.*

```csharp
ISch_HarnessComponent GetItem(THarnessCavityPartType argItemType, int argIndex);
bool SetItem(THarnessCavityPartType argItemType, int argIndex, ISch_HarnessComponent argItem);
```

**Type:** [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) · **Access:** read/write · **Index:** `argItemType` ([THarnessCavityPartType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/THarnessCavityPartType.md)), `argIndex` (`int`)

The accessors are extension methods of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`).

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [AddItem](#additem) | `bool` |  |
| [GetCount](#getcount) | `int` |  |
| [Remove](#remove) | `void` |  |
| [RemoveAll](#removeall) | `void` |  |
| [RemoveAllOfType](#removealloftype) | `void` |  |

### AddItem

*No description yet.*

```csharp
bool AddItem(THarnessCavityPartType argItemType, ISch_HarnessComponent argItem);
bool AddItem(int argItemType, object argItem);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argItemType` | [THarnessCavityPartType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/THarnessCavityPartType.md) | value |
| `argItem` | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | value |

**Returns:** `bool`

The first overload is an extension method of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### GetCount

*No description yet.*

```csharp
int GetCount(THarnessCavityPartType argItemType);
int GetCount(int argItemType);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argItemType` | [THarnessCavityPartType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/THarnessCavityPartType.md) | value |

**Returns:** `int`

The first overload is an extension method of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### Remove

*No description yet.*

```csharp
void Remove(THarnessCavityPartType argItemType, int argIndex);
void Remove(int argItemType, int argIndex);
```

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

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

The first overload is an extension method of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### RemoveAll

*No description yet.*

```csharp
void RemoveAll();
```

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

### RemoveAllOfType

*No description yet.*

```csharp
void RemoveAllOfType(THarnessCavityPartType argItemType);
void RemoveAllOfType(int argItemType);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argItemType` | [THarnessCavityPartType](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/THarnessCavityPartType.md) | value |

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

The first overload is an extension method of `ISch_HarnessCavityPartsOwnerHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.
