MediaPlayerFiles collection. Used in RadMediaPlayer playlist. For more information, please see the Playlist topic.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class MediaPlayerFilesCollection : IList, ICollection, IList<MediaPlayerFile>, ICollection<MediaPlayerFile>, IEnumerable<MediaPlayerFile>, IEnumerable, IStateManager
Inheritance: objectMediaPlayerFilesCollection
Implements:
Inherited Members
Constructors
Constructor for the MediaPlayerFiles collection. Used in RadMediaPlayer playlist. For more information, please see the Playlist topic.
public MediaPlayerFilesCollection(RadMediaPlayer owner)
Owner RadMediaPlayer control
Properties
Gets a value indicating whether the collection is read-only.
public bool IsReadOnly { get; }
Implements:
Owner RadMediaPlayer control
public RadMediaPlayer Owner { get; }
Access a MediaPlayerFile in the collection by index.
public MediaPlayerFile this[int index] { get; }
The index in the collection.
Property Value:The MediaPlayerFile at the specified position.
Methods
Adds file to the collection
Clears the collection
public void Clear()
Implements:
Determines of the file presents in the collection
public bool Contains(MediaPlayerFile item)
File to find
Returns:true if the file is found; otherwise false.
Implements:
Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index.
public void CopyTo(MediaPlayerFile[] array, int arrayIndex)
The one-dimensional array that is the destination of the elements copied from the current array.
arrayIndexintInteger that represents the index in array at which copying begins.
Implements:
Returns an enumerator that iterates through the collection.
public IEnumerator<MediaPlayerFile> GetEnumerator()
Returns an enumerator that iterates through the collection.
Implements:
Returns a collection of files, filtered by file type
public List<MediaPlayerFile> GetFilesByType(string fileType)
File types to find
Returns:Collection of items with the given file type
Determines the index of a specific file in the MediaPlayerFilesCollection.
public int IndexOf(MediaPlayerFile item)
The object to locate in the MediaPlayerFilesCollection.
Returns:The index of value if found in the collection; otherwise, -1.
Implements:
Inserts a file to the MediaPlayerFilesCollection at the specified index.
public void Insert(int index, MediaPlayerFile item)
The zero-based index at which file should be inserted.
itemMediaPlayerFileThe MediaPlayerFile to insert into the collection.
Implements:
Removes the first occurrence of a specific object from the collection.
public bool Remove(MediaPlayerFile item)
File to remove
Returns:true if file is successfully removed; otherwise, false.
Implements:
Removes the MediaPlayerFilesCollection file at the specified index.
public void RemoveAt(int index)
The zero-based index of the file to remove.
Implements: