EmbeddedFileCollection
Overview
EmbeddedFileCollection is a class in Aspose.PDF FOSS for .NET.
Inherits from: IReadOnlyList<FileSpecification>.
Collection of embedded files in a document.
This class provides 8 methods for working with EmbeddedFileCollection objects in .NET programs.
Available methods include: Add, CopyTo, Delete, DeleteByKey, FindByName, GetEnumerator.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Count, IsSynchronized, Keys, SyncRoot.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
IsSynchronized | bool | Read | Gets the is synchronized. |
SyncRoot | object | Read | Gets the sync root. |
Keys | List<string> | Read | The names of all embedded files in this collection. |
Methods
| Signature | Description |
|---|---|
Add(file: FileSpecification) | Add an embedded file attachment to the document. |
Add(key: string, file: FileSpecification) | Add with an explicit name, overriding the spec’s own Name. |
CopyTo(array: FileSpecification[], index: int) | Calls CopyTo on this EmbeddedFileCollection instance. |
FindByName(name: string) | Look up an embedded file by its registered name. |
DeleteByKey(key: string) | Sibling of Delete(string) using by-key naming. |
Delete() | Removes all embedded files from the document’s /Names/EmbeddedFiles name tree. |
Delete(name: string) | Remove a single embedded file by name. |
GetEnumerator() | Calls GetEnumerator on this EmbeddedFileCollection instance. |