Class Collection

Collection class

Represents class for Collection(12.3.5 Collections).

public class Collection : EmbeddedFileCollection


Collection()Initializes new Collection object.


Count { get; }Gets number of embedded files in collection.
DefaultEntry { get; }Default embedded file name.
IsSynchronized { get; }Gets a value indicating whether access to this collection is synchronized (thread safe).
Item { get; }Gets embedded file by its index. (2 indexers)
Keys { get; }Returns list of file attachment keys.
SyncRoot { get; }Gets an object that can be used to synchronize access to this collection.


Add(FileSpecification)Adds embedded file specification into collection.
Add(string, FileSpecification)Adds file to embedded files with the specified key.
CopyTo(FileSpecification[], int)Copies array of FileSpecification object into colleciton.
Delete()Remove all embedded files from document.
Delete(string)Delete embedded file by name.
DeleteByKey(string)Deletes file from the collection by its key in the collection.
FindByName(string)Returns embedded file by its name.
GetEnumerator()Returns colleciton enumerator.

See Also