• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MediaBookmarkCollection

A collection of MediaBookmark objects on a MediaObject. Provides Add, Insert, Remove, Clear, and indexer access.

Inheritance
object
MediaBookmarkCollection
Implements
IList<MediaBookmark>
ICollection<MediaBookmark>
IEnumerable<MediaBookmark>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class MediaBookmarkCollection : IList<MediaBookmark>, ICollection<MediaBookmark>, IEnumerable<MediaBookmark>, IEnumerable

Properties

Count

Gets the number of bookmarks in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

IsReadOnly

Gets a value indicating whether the collection is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

this[int]

Gets or sets the bookmark at the specified index.

Declaration
public MediaBookmark this[int index] { get; set; }
Parameters
Type Name Description
int index
Property Value
Type Description
MediaBookmark

Methods

Add(MediaBookmark)

Adds the specified bookmark to the collection.

Declaration
public void Add(MediaBookmark item)
Parameters
Type Name Description
MediaBookmark item

Add(string, int)

Creates and adds a bookmark with the specified name and time offset.

Declaration
public MediaBookmark Add(string name, int timeOffsetMilliseconds)
Parameters
Type Name Description
string name

The bookmark display name.

int timeOffsetMilliseconds

Time offset in milliseconds from the start of the media.

Returns
Type Description
MediaBookmark

The newly created bookmark.

Clear()

Removes all bookmarks from the collection.

Declaration
public void Clear()

Contains(MediaBookmark)

Determines whether the collection contains the specified bookmark.

Declaration
public bool Contains(MediaBookmark item)
Parameters
Type Name Description
MediaBookmark item
Returns
Type Description
bool

CopyTo(MediaBookmark[], int)

Copies the bookmarks to an array starting at the specified index.

Declaration
public void CopyTo(MediaBookmark[] array, int arrayIndex)
Parameters
Type Name Description
MediaBookmark[] array
int arrayIndex

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<MediaBookmark> GetEnumerator()
Returns
Type Description
IEnumerator<MediaBookmark>

IndexOf(MediaBookmark)

Returns the index of the specified bookmark, or -1 if not found.

Declaration
public int IndexOf(MediaBookmark item)
Parameters
Type Name Description
MediaBookmark item
Returns
Type Description
int

Insert(int, MediaBookmark)

Inserts a bookmark at the specified index.

Declaration
public void Insert(int index, MediaBookmark item)
Parameters
Type Name Description
int index
MediaBookmark item

Remove(MediaBookmark)

Removes the first occurrence of the specified bookmark.

Declaration
public bool Remove(MediaBookmark item)
Parameters
Type Name Description
MediaBookmark item
Returns
Type Description
bool

RemoveAt(int)

Removes the bookmark at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

Implements

IList<T>
ICollection<T>
IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX