ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TItemIdListCollection

Class which is allows to deal with multiple paths and ItemIdLists for that a common operation should be performed.  

 

ShellBrowser_TItemIdListCollectionShellBrowser_TItemIdListCollectionShellBrowser_TItemIdListCollection
Syntax
Pascal
TItemIdListCollection = class(TInterfacedObject, IItemIdListCollection, IShellItemArray, IContextMenu);

This class is reference counted since V11 and should be used with our interface IItemIdListCollection. It also implements the Shell API interface IShellItemArray via interface delegation.

To create an IDataObject from some paths use code like this:

function TForm1.CreateDataObject(Sender: TBaseVirtualTree; out DataObject: IDataObject);
var
  lMultiObjects: IItemIdListCollection;
begin
  lMultiObjects := TItemIdListCollection.Create(nil);
  lMulitObjects.Add('C:WindowsExplorer.exe');
  lMulitObjects.Add('C:WindowsRegedit.exe');
  DataObject := IDataObject(lMultiObjects.GetUIObject(IDataObject));
end;
ShellBrowser.TItemIdListCollection
 
Name 
Description 
 
Creates an instance of this class.  
 
Creates an instance of this class.  
 
Creates an instance of this class and fills it with a given IShellItemArray.  
 
Destroys the instance of this class  
 
Name 
Description 
 
Executes a shell command on the objects selected in the control.  
Jam.Shell.Types.IItemIdListCollection
 
Name 
Description 
 
Adds the given ItemIdList to this collection.  
 
Adds the elements of the given IItemIdListCollection to this instance.  
 
Adds the given path to this collection.  
 
Adds the given paths to this collection.  
 
Removes all elements.  
 
Returns the number of objects in this collection.  
 
Returns the enumerator for all IItemIdLists in this collection.  
 
Getter for the Items property.  
 
Wrapper for IShellFolder.GetUIObjectOf() which retrieves a COM object for the ItemIdLists in this collection.  
 
Executes a Shell context menu command for all ItemIdLists in this collection 
 
Executes a Shell context menu command for all ItemIdLists in this collection
Returns the string representation of the value.  
ShellBrowser.TItemIdListCollection
 
Name 
Description 
 
Adds the given ItemIdList to this collection.  
 
Adds the elements of the given IItemIdListCollection to this instance.  
 
Adds the given path to this collection.  
 
Adds the given paths to this collection.  
 
Replaces the current members in this collection with the given ItemIdLists.  
 
Replaces the current members in this collection with the given paths.  
 
Removes all elements.  
 
Copies the items included in this collection at a TJamShellChangeNotifier.  
 
Copies the items included in this collection at a list of strings.  
 
Returns the number of objects in this collection.  
 
Returns the enumerator for all IItemIdLists in this collection.  
 
Returns the ItemIdList of a parent folder that is a common ancestor for all included ItemIdLists. 
 
Wrapper for IShellFolder.GetUIObjectOf() which retrieves a COM object for the ItemIdLists in this collection.  
 
Returns if the ItemIdLists in this collection all have the same direct parent. 
 
Returns the path of all elements in this instance as string.  
Jam.Shell.Types.IItemIdListCollection
 
Name 
Description 
 
Allows to access the IItemIdLists in this collection by index. 
ShellBrowser.TItemIdListCollection
 
Name 
Description 
 
If this property is assigned, all itemidlists must be relative to this folder, otherwise they are absolute 
 
Allows to access the IItemIdLists in this collection by index.