PlaylistRemoveByIndex Method (IMPlaylist)
index of item to start remove from
number of items to be removed
Possible values:
Removes multiple items from the playlist.
Syntax
Sub PlaylistRemoveByIndex( _
   ByVal _nIndex As Integer, _
   ByVal _nExtraRemove As Integer _
) 
void PlaylistRemoveByIndex( 
   int _nIndex,
   int _nExtraRemove
)
procedure PlaylistRemoveByIndex( 
    _nIndex: Integer;
    _nExtraRemove: Integer
); 
void PlaylistRemoveByIndex( 
   int _nIndex,
   int _nExtraRemove
) 

Parameters

_nIndex
index of item to start remove from
_nExtraRemove
number of items to be removed
Possible values:
  • 0 - remove single item.
  • positive value - number of items to be removed is calculated to the end of playlist.
  • negative value -clear all playlist items.
Example

Here is example of how to remove all playlist items:

myPlaylist.PlaylistRemoveByIndex(0, -1)
myPlaylist.PlaylistRemoveByIndex(0, -1);
myPlaylist.PlaylistRemoveByIndex(0, -1); 
See Also

Reference

IMPlaylist Interface
IMPlaylist Members