## EmbeddedFileCollection class

Class representing embedded files collection.

```csharp
public class EmbeddedFileCollection : ICollection<FileSpecification>
```

## Properties

| Name | Description |
| --- | --- |
| [Count](../../aspose.pdf/embeddedfilecollection/count/) { get; } | Gets number of embedded files in collection. |
| [IsSynchronized](../../aspose.pdf/embeddedfilecollection/issynchronized/) { get; } | Gets a value indicating whether access to this collection is synchronized (thread safe). |
| [Item](../../aspose.pdf/embeddedfilecollection/item/) { get; } | Gets embedded file by its index. (2 indexers) |
| [Keys](../../aspose.pdf/embeddedfilecollection/keys/) { get; } | Returns list of file attachment keys. |
| [SyncRoot](../../aspose.pdf/embeddedfilecollection/syncroot/) { get; } | Gets an object that can be used to synchronize access to this collection. |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.pdf/embeddedfilecollection/add/#add)(FileSpecification) | Adds embedded file specification into collection. |
| [Add](../../aspose.pdf/embeddedfilecollection/add/#add_1)(string, FileSpecification) | Adds file to embedded files with the specified key. |
| [CopyTo](../../aspose.pdf/embeddedfilecollection/copyto/)(FileSpecification[], int) | Copies array of FileSpecification object into colleciton. |
| [Delete](../../aspose.pdf/embeddedfilecollection/delete/#delete)() | Remove all embedded files from document. |
| [Delete](../../aspose.pdf/embeddedfilecollection/delete/#delete_1)(string) | Delete embedded file by name. |
| [DeleteByKey](../../aspose.pdf/embeddedfilecollection/deletebykey/)(string) | Deletes file from the collection by its key in the collection. |
| [FindByName](../../aspose.pdf/embeddedfilecollection/findbyname/)(string) | Returns embedded file by its name. |
| [GetEnumerator](../../aspose.pdf/embeddedfilecollection/getenumerator/)() | Returns colleciton enumerator. |

### See Also

* class [FileSpecification](../filespecification/)
* namespace [Aspose.Pdf](../../aspose.pdf/)
* assembly [Aspose.PDF](../../)


