PlaylistRemoveByIndex Method (MPlaylistClass)
index of item to start remove from
number of items to be removed
Possible values:
Removes multiple items from the playlist.
Syntax
Public Overridable Sub PlaylistRemoveByIndex( _
   ByVal _nIndex As Integer, _
   ByVal _nExtraRemove As Integer _
) 
public virtual void PlaylistRemoveByIndex( 
   int _nIndex,
   int _nExtraRemove
)
public procedure PlaylistRemoveByIndex( 
    _nIndex: Integer;
    _nExtraRemove: Integer
); virtual; 
public: virtual 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

MPlaylistClass Class
MPlaylistClass Members