ShellBrowser Delphi Components Documentation
|
Returns meta information on the item identified by this ItemIdList.
function GetPropertyValue(const pShellColumnId: TShellColumnId): TShellPropertyValue;
Parameters |
Description |
const pShellColumnId: TShellColumnId |
A TShellColumnId identifying the shell property for which to retrieve the value. |
TShellPropertyValue: The requested property value. If the property is not available or not set for the ItemIdList TShellPropertyValue.IsEmpty will return true.
Method only works as expected on Windows Vista and later.
The following example reads the element type value of a file and converts it to a string.
var lItemIdList: IItemIdList; lValue: TShellPropertyValue; lElementType: string; begin lItemIdList := TJamItemIdList.Create('c:image.jpg'); lValue := lItemIdList.GetPropertyValue(TShellColumns.ElementType); lElementType := string(lValue); //TShellPropertyValue is compatible with OleVariant end;