
# IOpenBus_PortCollection interface

*No description yet.*

```csharp
public interface IOpenBus_PortCollection
```

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetCount](#getcount) | `int` |  |
| [GetPortsSch](#getportssch) | [IOpenBus_Port](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IOpenBus_Port.md) |  |
| [SetPortIndexInSection](#setportindexinsection) | `void` |  |

### GetCount

*No description yet.*

```csharp
int GetCount();
```

**Returns:** `int`

### GetPortsSch

*No description yet.*

```csharp
IOpenBus_Port GetPortsSch(int argIndex);
```

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

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

Extension method of `IOpenBus_PortCollectionHelper` (`using SCH;`).

### SetPortIndexInSection

*No description yet.*

```csharp
void SetPortIndexInSection(IOpenBus_Port argPort, int argIndex);
void SetPortIndexInSection(object argPort, int argIndex);
```

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

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

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

## Returned by

[IOpenBus_Component.SchPorts](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IOpenBus_Component.md#schports)
