public class EmbeddedFileCollection extends Object implements com.aspose.ms.System.Collections.ICollection
Class representing embedded files collection.
Modifier and Type | Method and Description |
---|---|
void |
add(FileSpecification file)
Adds embedded file specification into collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies array of FileSpecification object into colleciton.
|
void |
delete()
Remove all embedded files from document.
|
void |
delete(int index)
Delete embedded file by index.
|
FileSpecification |
get_Item(int index)
Gets embedded file by its index.
|
FileSpecification |
get_Item(String name)
Gets embedded file by its name.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
|
boolean |
isSynchronized()
Gets a value indicating whether access to this collection is synchronized (thread safe).
|
com.aspose.ms.System.Collections.IEnumerator |
iterator()
Returns colleciton enumerator.
|
int |
size()
Gets number of embedded files in collection.
|
public boolean isSynchronized()
Gets a value indicating whether access to this collection is synchronized (thread safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection
public Object getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection
public int size()
Gets number of embedded files in collection.
size
in interface com.aspose.ms.System.Collections.ICollection
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies array of FileSpecification object into colleciton.
copyTo
in interface com.aspose.ms.System.Collections.ICollection
array
- Array of objects which will be copied.index
- Starting index from which copying will be started.public com.aspose.ms.System.Collections.IEnumerator iterator()
Returns colleciton enumerator.
public void add(FileSpecification file)
Adds embedded file specification into collection.
file
- FileSpecification which should be added into colleciton.public void delete(int index)
Delete embedded file by index.
index
- Index of embedded file which should be deleted.public void delete()
Remove all embedded files from document.
public FileSpecification get_Item(int index)
Gets embedded file by its index.
index
- Index of embedded file. Numbering is started from 1.public FileSpecification get_Item(String name)
Gets embedded file by its name.
name
- Embedded file name.Copyright © 2017 Aspose. All Rights Reserved.