BExplorer.Shell.ShellView.ResizeIcons C# (CSharp) Method

ResizeIcons() public method

Resizes the icons
public ResizeIcons ( Int32 value ) : void
value Int32 The icon size you want
return void
    public void ResizeIcons(Int32 value) {
      try {
        IconSize = value;
        foreach (var obj in this.Items.ToArray()) {
          obj.IsIconLoaded = false;
          obj.IsNeedRefreshing = true;
        }

        this.LargeImageList.ResizeImages(value);
        this.LargeImageList.AttachToListView(this, 0);
        this.SmallImageList.AttachToListView(this, 1);
        var newW = 0;
        var newH = 0;
        this._IIListView?.SetIconSpacing(value + 45, value + 38, out newW, out newH);
        //User32.SendMessage(this.LVHandle, MSG.LVM_SETICONSPACING, 0, (IntPtr)User32.MAKELONG((Int32)(value * 1.3), (Int32)(value * 1.4)));
      } catch (Exception) {
      }
    }
ShellView