com.aspose.slides
Class VideoCollection

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

public class VideoCollection
extends java.lang.Object
implements IVideoCollection

Represents a collection of Video objects.


Method Summary
 IVideo addVideo(byte[] videoData)
           Creates and adds a video to a presentation from byte array.
 IVideo addVideo(java.io.InputStream stream)
           Creates and adds a video to a presentation from stream.
 IVideo addVideo(IVideo video)
           Adds a copy of an video file from an another presentation.
 void copyTo(IVideo[] array, int index)
           Copies all elements from the collection into the specified array.
 IVideo 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<IVideo> iterator()
           Returns an enumerator that iterates through the collection.
 int size()
           Returns a number of video 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 video files in the collection. Read-only int.

Specified by:
size in interface IGenericCollection<IVideo>

get_Item

public IVideo get_Item(int index)

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

Specified by:
get_Item in interface IVideoCollection

addVideo

public IVideo addVideo(IVideo video)

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

Specified by:
addVideo in interface IVideoCollection
Parameters:
video - Source video.
Returns:
Added video.

addVideo

public IVideo addVideo(java.io.InputStream stream)
Description copied from interface: IVideoCollection

Creates and adds a video to a presentation from stream.

Specified by:
addVideo in interface IVideoCollection
Parameters:
stream - Stream to add video file from.
Returns:
Added IVideo.

addVideo

public IVideo addVideo(byte[] videoData)

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

Specified by:
addVideo in interface IVideoCollection
Parameters:
videoData - Video bytes.
Returns:
Added video.

copyTo

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

Copies all elements from the collection into the specified array.

Specified by:
copyTo in interface IGenericCollection<IVideo>
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<IVideo>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<IVideo>

iterator

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

Returns an enumerator that iterates through the collection.

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

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.



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