EmbeddedFileCollection

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 declares 8 methods for EmbeddedFileCollection objects in .NET programs. Available methods include: Add, CopyTo, Delete, DeleteByKey, FindByName, GetEnumerator. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Count, IsSynchronized, Keys, SyncRoot.

Properties

NameTypeAccessDescription
CountintReadGets the number of embedded files in the document.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.
KeysList<string>ReadThe names of all embedded files in this collection.

Methods

SignatureDescription
Add(file: FileSpecification)Add an embedded file attachment to the document.
Add(key: string, file: FileSpecification)Add under a tree key of the caller’s choosing.
CopyTo(array: FileSpecification[], index: int)Copies the embedded file specifications into array, starting at the 0-based position index in that array.
FindByName(name: string)Look up an embedded file by its registered name.
DeleteByKey(key: string)Sibling of Delete(string) under the established 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.

See Also

 English