ShellBrowser Delphi Components Documentation
ContentsIndexHome
Example

The following example shows how load the view state property bag of "C:" and read the stored icon size of the folder:

  var
    ViewStatePropertyBag: IJamViewSettings;
    IconSize: DWORD;

  begin
    ViewStatePropertyBag := TJamViewStatePropertyBag.Create;

    // Property bag of "C:" was opened successfully?
    if ViewStatePropertyBag.Open(TJamItemIdList.Create('C:')) then
      // Load settings
      IconSize := ViewStatePropertyBag.IconSize;
  end;