
# IComponentDefinitionList interface

*No description yet.*

```csharp
public interface IComponentDefinitionList : IAbstractObjectList
```

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

**Inherits:** [IAbstractObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IAbstractObject.md) → [IAbstractObjectList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IAbstractObjectList.md)

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [Add](#add) | `int` |  |
| [Get](#get) | [IComponentDefinition](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IComponentDefinition.md) |  |

### Add

*No description yet.*

```csharp
int Add(IAbstractItem argItem);
int Add(object argItem);
```

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

**Returns:** `int`

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

### Get

*No description yet.*

```csharp
IComponentDefinition Get(int argI);
```

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

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

Extension method of `IComponentDefinitionListHelper` (`using ComponentLib;`).

## Inherited members

- From [IAbstractObjectList](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IAbstractObjectList.md): [Count](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IAbstractObjectList.md#count)

## Returned by

[IAbstractGroup.ComponentDefinitions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IAbstractGroup.md#componentdefinitions), [IComponentLibraryCommandHandler.GetSelectedComponents](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IComponentLibraryCommandHandler.md#getselectedcomponents), [IComponentLibraryDocument.GetSelectedComponents](https://altiumdeveloper.github.io/ad-sdk-docs/reference/componentlib/IComponentLibraryDocument.md#getselectedcomponents)
