New to Telerik Document ProcessingStart a free 30-day trial

EmbeddedFilesCollection

Updated on Jun 23, 2026

The EmbeddedFilesCollection class holds a collection of EmbeddedFile instances, assigned to the EmbeddedFiles property of the document. The collection exposes properties and methods that allow you to access, add, or remove the embedded file streams in a document.

Properties

PropertyDescription
NamesGets a collection containing the names in the collection.
CountGets the number of embedded files in the collection.
ContainsZugferdInvoiceDetermines whether the collection contains a ZUGFeRD invoice name.

Methods

MethodDescription
GetEnumerator()Returns an enumerator that iterates through the collection.
Remove(string name)Removes the embedded file with the specified name from the collection.
Rename(string oldName, string newName)Renames an embedded file in the collection.
Add(string name, byte[] data)Adds a named embedded file with the specified name and value to the collection and returns it.
ContainsName(string name)Determines whether the collection contains the specified name.
Clear()Removes all embedded files from the collection.
AddZugferdInvoice(byte[] data, ZugferdConformanceLevel level)Adds an embedded ZUGFeRD-compliant file to the collection and returns it. The level parameter specifies the conformance level (defaults to Basic). When the level is XRechnung, the embedded file name is xrechnung.xml; otherwise it is factur-x.xml. Only a single XML invoice attachment is allowed in ZUGFeRD.
RemoveZugferdInvoice()Removes the embedded ZUGFeRD file with the specified name from the collection.

See Also

In this article
PropertiesMethodsSee Also
Not finding the help you need?
Contact Support