public class AudioCollection extends DomObject<Presentation> implements IAudioCollection
Represents a collection of embedded audio files.
| Modifier and Type | Method and Description |
|---|---|
IAudio |
addAudio(byte[] audioData)
Creates and adds a audio to a presentation from byte array.
|
IAudio |
addAudio(IAudio audio)
Adds a copy of an audio file from an another presentation.
|
IAudio |
addAudio(java.io.InputStream stream)
Creates and adds a audio to a presentation from stream.
|
IAudio |
addAudio(java.io.InputStream stream,
int loadingStreamBehavior)
Creates and adds a audio to a presentation from stream.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies audios to specified array starting from specified index.
|
IAudio |
get_Item(int index)
Gets the element at the specified index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> |
iteratorJava()
Returns a java iterator for the entire collection.
|
int |
size()
Returns a number of audio files in the collection.
|
getParent_Immediatepublic final int size()
Returns a number of audio files in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IAudio>public final IAudio get_Item(int index)
Gets the element at the specified index.
Read-only IAudio.
get_Item in interface IAudioCollectionpublic final IAudio addAudio(IAudio audio)
Adds a copy of an audio file from an another presentation.
addAudio in interface IAudioCollectionaudio - Source audio.public final IAudio addAudio(java.io.InputStream stream)
Creates and adds a audio to a presentation from stream.
addAudio in interface IAudioCollectionstream - Stream to add audio from.public final IAudio addAudio(java.io.InputStream stream, int loadingStreamBehavior)
Creates and adds a audio to a presentation from stream.
addAudio in interface IAudioCollectionstream - Stream to add video audio from.loadingStreamBehavior - The behavior which will be applied to the stream.public final IAudio addAudio(byte[] audioData)
Creates and adds a audio to a presentation from byte array.
addAudio in interface IAudioCollectionaudioData - Audio bytes.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies audios to specified array starting from specified index.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IAudio>array - Array.index - Index.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IAudio>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IAudio>public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IAudio>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IAudio>iterator in interface java.lang.Iterable<IAudio>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IAudio>Iterator for the entire collection.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.