ItemTimesGet Method (IMItem)
start time
stop time
start type
Gets the absolute start and stop time of playlist item.
Syntax
Sub ItemTimesGet( _
   ByRef _pStartTime As M_DATETIME, _
   ByRef _pStopTime As M_DATETIME, _
   ByRef _peStartType As eMStartType _
) 
procedure ItemTimesGet( 
   Out  _pStartTime: M_DATETIME;
   Out  _pStopTime: M_DATETIME;
   Out  _peStartType: eMStartType
); 
void ItemTimesGet( 
   [PARAMFLAG::Out] M_DATETIME _pStartTime,
   [PARAMFLAG::Out] M_DATETIME _pStopTime,
   [PARAMFLAG::Out] eMStartType _peStartType
) 

Parameters

_pStartTime
start time
_pStopTime
stop time
_peStartType
start type
Example

Here is example of how to set start time for playlist item:

Dim myItem As MItem
Dim strPath As String
Dim dblPos As Double
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem)
et stop time as start time.
Dim _myStart As M_DATATIME
Dim _myStop As M_DATATIME
Dim _myType As eMStartType
pItem.ItemTimesGet(_myStart, _myStop, _myType) 'get time
pItem.ItemStartTimeSet(_myStop, eMStartType.eMST_Off)
MItem myItem;
string strPath;
double dblPos;
myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out myItem);
//set stop time as start time.
M_DATATIME _myStart;
M_DATATIME _myStop;
eMStartType _myType;
myItem.ItemTimesGet(out _myStart, out _myStop, out _myType); //get time
myItem.ItemStartTimeSet(ref _myStop, eMStartType.eMST_Off);
var
myItem: MItem;
strPath: widestring;
dblPos: double;
myStart, myStop: M_DATETIME;
myType: eMStartType;
begin
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem);
myItem.ItemTimesGet(myStart, myStop, myType);
myItem.ItemStartTimeSet(myStop, eMST_Off);
end;
See Also

Reference

IMItem Interface
IMItem Members