MPLATFORMLib Namespace > MItemClass Class : ItemTypeGet Method |
Public Overridable Sub ItemTypeGet( _ ByRef _peType As eMItemType _ )
public virtual void ItemTypeGet( out eMItemType _peType )
public procedure ItemTypeGet( Out _peType: eMItemType ); virtual;
public: virtual void ItemTypeGet( [PARAMFLAG::Out] eMItemType _peType )
Here is example of how to get type of playlist item:
Dim myItem As MItem Dim strPath As String Dim dblPos As Double myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem) Dim _myObject as Object pItem.ItemInnerGet(_myObject) 'let find out type of this object Dim pType As eMItemType DirectCast(_myObject, IMItem).ItemTypeGet(pType)
MItem pItem; string strPath; double dblPos; myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out pItem); object _myObject; pItem.ItemInnerGet(out _myObject); //let find out type of this object eMItemType pType; ((IMItem)_myObject).ItemTypeGet(out pType);
var myObject: TObject; pType: eMItemType; myItem, pItem: MItem; strPath: widestring; dblPos: double; begin myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, pItem); pItem.ItemInnerGet(myObject); myItem:= myObject as IMItem; myItem.ItemTypeGet(pType); end;