packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
/// <summary>
/// Returns the current view mode of the browser
/// </summary>
/// <returns></returns>
Returns the current view mode of the browser
Returns the current view mode of the browser
internal FolderViewMode GetCurrentViewMode()
        {
            IFolderView2 ifv2 = GetFolderView2();
            uint viewMode = 0;
            if (ifv2 != null)
            {
                try
                {
                    HResult hr = ifv2.GetCurrentViewMode(out viewMode);
                    if (hr != HResult.Ok) { throw new ShellException(hr); }
                }
                finally
                {
                    Marshal.ReleaseComObject(ifv2);
                    ifv2 = null;
                }
            }
            return (FolderViewMode)viewMode;
        }
internal FolderViewMode GetCurrentViewMode ( ) { IFolderView2 ifv2 = GetFolderView2 ( ) ; uint viewMode = 0 ; if ( ifv2 != null ) { try { HResult hr = ifv2 . GetCurrentViewMode ( out viewMode ) ; if ( hr != HResult . Ok ) { throw new ShellException ( hr ) ; } } finally { Marshal . ReleaseComObject ( ifv2 ) ; ifv2 = null ; } } return ( FolderViewMode ) viewMode ; }
Returns the current view mode of the browser
Returns the current view mode of the browser
None