PlaylistRemove Method (MItemClass)
playlist item
Removes the item from playlist.
Syntax
Public Overridable Sub PlaylistRemove( _
   ByVal pFile As MItem _
) 
public virtual void PlaylistRemove( 
   MItem pFile
)
public procedure PlaylistRemove( 
    pFile: MItem
); virtual; 
public: virtual void PlaylistRemove( 
   MItem* pFile
) 

Parameters

pFile
playlist item
Example

Here is example of how to remove playlist item by its position:

Dim myIndex As Integer
Dim myNextIndex As Integer
Dim myItem As MItem
Dim strPath As String
Dim dblFileDuration As Double
Dim dblFilePos As Double
Dim dblListPos As Double
myPlaylist.PlaylistPosGet(myIndex, myNextIndex, dblFilePos, dblListPos)
myPlaylist.PlaylistGetByOffset(dblListPos, nIndex, dblFileDuration, strPath, myItem)
myPlaylist.PlaylistRemove(myItem);
int myIndex;
int myNextIndex;
MItem myItem;
string strPath;
double dblFileDuration;
double dblFilePos;
double dblListPos;
myPlaylist.PlaylistPosGet(out myIndex, out myNextIndex, out dblFilePos, out dblListPos);
myPlaylist.PlaylistGetByOffset(dblListPos, out nIndex, out dblFileDuration, out strPath, out myItem);
myPlaylist.PlaylistRemove(myItem);
var
myIndex, myNextIndex: integer;
myItem: MItem;
strPath: widestring;
dblFileDuration, dblListPos, dblFilePos: double;
begin
myPlaylist.PlaylistPosGet(myIndex, myNextIndex, dblFilePos, dblListPos);
myPlaylist.PlaylistGetByOffset(1, dblFileDuration, strPath, myItem);
myPlaylist.PlaylistRemove(myItem);
end;
See Also

Reference

MItemClass Class
MItemClass Members