
# ILsmSdkViaSpanCollection interface

*No description yet.*

```csharp
public interface ILsmSdkViaSpanCollection
```

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetCount](#getcount) | `int` |  |
| [GetItem](#getitem) | [ILsmSdkViaSpan](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILsmSdkViaSpan.md) |  |
| [GetItemById](#getitembyid) | [ILsmSdkViaSpan](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILsmSdkViaSpan.md) |  |

### GetCount

*No description yet.*

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

**Returns:** `int`

### GetItem

*No description yet.*

```csharp
ILsmSdkViaSpan GetItem(int argIndex);
```

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

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

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

### GetItemById

*No description yet.*

```csharp
ILsmSdkViaSpan GetItemById(string argId);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argId` | `string` | value |

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

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

## Returned by

[ILsmSdkLayerStack.ViaSpans](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILsmSdkLayerStack.md#viaspans)
