PlaylistReorder Method (MPlaylistClass)
index of item to be changed
index change number
Possible values:
Changes the playlist items order.
Syntax
Public Overridable Sub PlaylistReorder( _
   ByVal _nIndex As Integer, _
   ByVal _nIndexAdd As Integer _
) 
public virtual void PlaylistReorder( 
   int _nIndex,
   int _nIndexAdd
)
public procedure PlaylistReorder( 
    _nIndex: Integer;
    _nIndexAdd: Integer
); virtual; 
public: virtual void PlaylistReorder( 
   int _nIndex,
   int _nIndexAdd
) 

Parameters

_nIndex
index of item to be changed
_nIndexAdd
index change number
Possible values:
  • positive value - position is changed in direction to end of playlist.
  • negative value - position is changed in direction to beggining of playlist.
Example

Here is examples of reorders:

'1 2 3 4 5 6 -> 1 2 3 4 6 5
m_objPlaylist.PlaylistReorder(5, 1)
'1 2 3 4 5 6 -> 1 2 3 5 4 6
m_objPlaylist.PlaylistReorder(5, -1)
'1 2 3 4 5 6 -> 5 1 2 3 4 6
m_objPlaylist.PlaylistReorder(5, -10)
'1 2 3 4 5 6 -> 1 2 3 4 6 7 8 5
m_objPlaylist.PlaylistReorder(5, 10)
//1 2 3 4 5 6 -> 1 2 3 4 6 5
m_objPlaylist.PlaylistReorder(5, 1);
//1 2 3 4 5 6 -> 1 2 3 5 4 6
m_objPlaylist.PlaylistReorder(5, -1);
//1 2 3 4 5 6 -> 5 1 2 3 4 6
m_objPlaylist.PlaylistReorder(5, -10);
//1 2 3 4 5 6 -> 1 2 3 4 6 7 8 5
m_objPlaylist.PlaylistReorder(5, 10);
//1 2 3 4 5 6 -> 1 2 3 4 6 5
mPlaylist.PlaylistReorder(5, 1);
//1 2 3 4 5 6 -> 1 2 3 5 4 6
mPlaylist.PlaylistReorder(5, -1);
//1 2 3 4 5 6 -> 5 1 2 3 4 6
mPlaylist.PlaylistReorder(5, -10);
//1 2 3 4 5 6 -> 1 2 3 4 6 7 8 5
mPlaylist.PlaylistReorder(5, 10);
See Also

Reference

MPlaylistClass Class
MPlaylistClass Members