Available for: UI for ASP.NET MVC | UI for ASP.NET AJAX | UI for Blazor | UI for WPF | UI for WinForms | UI for Silverlight | UI for Xamarin | UI for WinUI | UI for ASP.NET Core | UI for .NET MAUI

New to Telerik Document Processing? Download free 30-day trial

EmbeddedFilesCollection

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

Properties

Property Description
Names Gets a collection containing the names in the collection.
Count Gets the number of embedded files in the collection.
ContainsZugferdInvoice Determines whether the collection contains a ZUGFeRD invoice name.

Methods

Method Description
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) Rename 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) Adds an embedded ZUGFeRD compliant file to the collection and returns it. The Conformance level is set to Basic. Only a single XML invoice attachment is allowed in ZUGFeRD.
RemoveZugferdInvoice() Removes the embedded ZUGFeRD file with the specified name from the collection.
In this article