com.aspose.slides
Class AudioCollection

java.lang.Object
  extended by com.aspose.slides.AudioCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IAudio>, com.aspose.ms.System.Collections.IEnumerable<IAudio>, IAudioCollection, IGenericCollection<IAudio>, java.lang.Iterable<IAudio>

public class AudioCollection
extends java.lang.Object
implements IAudioCollection

Represents a collection of embedded audio files.


Method Summary
 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.
 void copyTo(IAudio[] array, int index)
           Copies all elements from the collection into the specified array.
 IAudio get_Item(int index)
           Gets the element at the specified index.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 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.
 int size()
           Returns a number of audio files in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

Returns a number of audio files in the collection. Read-only int.

Specified by:
size in interface IGenericCollection<IAudio>

get_Item

public IAudio get_Item(int index)

Gets the element at the specified index. Read-only IAudio.

Specified by:
get_Item in interface IAudioCollection

addAudio

public IAudio addAudio(IAudio audio)

Adds a copy of an audio file from an another presentation.

Specified by:
addAudio in interface IAudioCollection
Parameters:
audio - Source audio.
Returns:
Added audio.

addAudio

public IAudio addAudio(java.io.InputStream stream)

Creates and adds a audio to a presentation from stream.

Specified by:
addAudio in interface IAudioCollection
Parameters:
stream - Stream to add audio from.
Returns:
Added audio.

addAudio

public IAudio addAudio(byte[] audioData)

Creates and adds a audio to a presentation from byte array.

Specified by:
addAudio in interface IAudioCollection
Parameters:
audioData - Audio bytes.
Returns:
Added audio.

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.


copyTo

public void copyTo(IAudio[] array,
                   int index)
Description copied from interface: IGenericCollection

Copies all elements from the collection into the specified array.

Specified by:
copyTo in interface IGenericCollection<IAudio>
Parameters:
array - Array to fill.
index - Starting position in target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Specified by:
isSynchronized in interface IGenericCollection<IAudio>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<IAudio>

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IAudio>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IAudio>
Specified by:
iterator in interface java.lang.Iterable<IAudio>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.