C# Класс BExplorer.Shell.ShellView

The ShellFileListView class that visualize contents of a directory
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AllAvailableColumns Collumns>.Dictionary
BadgesData Dictionary>>
Collumns List
CurrentRefreshedItemIndex Int32
Groups List
IsCancelRequested Boolean
IsFocusAllowed Boolean
IsNavigationCancelRequested Boolean
IsNavigationInProgress Boolean
IsRenameInProgress Boolean
IsSearchNavigating Boolean
IsViewSelectionAllowed Boolean
LargeImageList ImageListEx
SmallImageList ImageListEx
ToolTip ToolTip

Private Properties

Свойство Тип Описание
AutosizeColumn void
Column_OnClick void
Do_Copy_OR_Move_Helper void
Do_Copy_OR_Move_Helper_2 void
Drag_SetEffect void
DrawComputerTiledModeView void
DrawNormalFolderSubitemsInTiledView void
EndLabelEdit void
GenerateGroupsFromColumn void
GetBadgeForPath IListItemEx
GetFilePropertiesString String
GetFirstIndexOf Int32
GetFirstSelectedItem IListItemEx
InitializeComponent void
LoadSettingsFromDatabase Boolean
Navigate void
NavigateSearch void
OnItemMiddleClick void
OnSelectionChanged void
PrepareSearchQuery String
ProcessCustomDraw void
ProcessCustomDrawPostPaint void
ProcessShellNotifications void
QueueDeleteItem void
RedrawWindow void
RedrawWindow void
RenameItem void
ResortListViewItems void
RetrieveThumbnailByIndex void
SetSortIcon void
ShellView_GotFocus void
ShellView_KeyDown Boolean
ShellView_MouseUp void
StartProcessInCurrentDirectory void
ThreadRun_Helper Boolean
ToLvItemIndex LVITEMINDEX
UpdateColsInView void
UpdateIconCacheForFolder void
WndProc void
_MaintenanceTimer_Tick void
_UnvalidateTimer_Tick void
resetTimer_Tick void
selectionTimer_Tick void

Открытые методы

Метод Описание
AutosizeAllColumns ( Int32 autosizeParam ) : void

Automatically resize all controls

CancelNavigation ( ) : void

Cancels navigation

ClearFolderIcon ( String wszPath ) : HResult

Removes the folder's icon

CopySelectedFiles ( ) : void
CreateNewFolder ( String name ) : String

Creates a new folder in the current directory and assigns a default name if none is specified. Returns the name

CreateNewLibrary ( String name ) : ShellLibrary

Creates a new library folder

CutSelectedFiles ( ) : void
DeSelectAllItems ( ) : void

Sets focus to tis control then deselects all items

DeleteSelectedFiles ( Boolean isRecycling ) : void
DisableGroups ( ) : void

Disables/Removes grouping

DoCopy ( System.Windows.Forms dataObject, IListItemEx destination ) : void
DoCopy ( IListItemEx destination ) : void
DoCopy ( System dataObject, IListItemEx destination ) : void
DoMove ( System.Windows.Forms dataObject, IListItemEx destination ) : void
DoMove ( IListItemEx destination ) : void
DoMove ( System dataObject, IListItemEx destination ) : void
EnableGroups ( ) : void

Enables/Adds groupings

Focus ( Boolean isActiveCheck = true, Boolean isForce = false ) : void

Gives the ShellListView focus

GetFirstSelectedItemIndex ( ) : Int32

Returns the first selected item's index OR -1 if there is no selected item

GetGroupIndex ( Int32 itemIndex ) : Int32
GetIntPtrFromData ( Object data ) : IntPtr
GetSelectedCount ( ) : Int32
InsertNewItem ( IListItemEx obj ) : Int32

Inserts a new item into the control If and only If it is new. Returns the item's index OR -1 if already existing

InvertSelection ( ) : void

Inverse the selection of items

IsDropDescriptionValid ( System dataObject ) : Boolean
IsShowingLayered ( System.Windows.Forms dataObject ) : Boolean
NavigateParent ( ) : void

Navigates to the parent of the currently displayed folder.

Navigate_Full ( IListItemEx destination, Boolean saveFolderSettings, Boolean isInSameTab = false, Boolean refresh = false ) : void

Navigate to a folder, set it as the current folder and optionally save the folder's settings to the database.

Navigate_Full ( String SearchQuery, Boolean saveFolderSettings, Boolean isInSameTab = false, Boolean refresh = false ) : void

Navigates to a search folder

OpenOrNavigateItem ( ) : void

If the Current item IsFolder Then navigate to it Else open item

OpenShareUI ( ) : void
PasteAvailableFiles ( ) : void
RaiseItemUpdated ( ItemUpdateType type, IListItemEx old, IListItemEx newItem, Int32 index ) : void
RaiseMiddleClickOnItem ( IListItemEx item ) : void
RaiseRecycleBinUpdated ( ) : void
RedrawItem ( Int32 index, Int32 delay = -1 ) : void
RefreshContents ( ) : void

Refreshes the contact (by navigating to the current folder If and only If the current folder is not null)

RefreshItem ( Int32 index, Boolean isForceRedraw = false ) : void

Refreshes a single item

RemoveAllCollumns ( ) : void
RenameSelectedItem ( ) : void

Renames the first selected item

RenameSelectedItem ( Int32 index ) : void

Renames the item at the specified index

RenameShellItem ( IShellItem item, String newName, Boolean isAddFileExtension, String extension = "" ) : void
ResetFolderSettings ( ) : void

Resets the current folder's settings by deting it from the SQLIte database

ResizeIcons ( Int32 value ) : void

Resizes the icons

SaveSettingsToDatabase ( IListItemEx destination ) : void

Saves the current destination settings to the SQLite database

SelectAll ( ) : void

Selects all items and sets this to focus

SelectItemByIndex ( Int32 index, Boolean ensureVisability = false, Boolean deselectOthers = false ) : void

Set this to focus then select an item by its index

SelectItems ( IListItemEx shellObjectArray ) : void

Selects only the specified items. First runs DeSelectAllItems Then selects all items on a separate thread.

SetColInView ( Collumns col, Boolean remove ) : void
SetFolderIcon ( String wszPath, String wszExpandedIconPath, Int32 iIcon ) : void

Sets the folder's icon

SetGroupOrder ( Boolean reverse = true ) : void

Sets the Sort order of the Groups

SetSortCollumn ( Boolean isReorder, Collumns column, SortOrder order, Boolean reverseOrder = true ) : void
ShellView ( ) : BExplorer.Shell._Plugin_Interfaces

Main constructor

ShowPropPage ( IntPtr HWND, String filename, String proppage ) : void
UnvalidateDirectory ( ) : void

Invalidates the director

Starts restarts _UnvalidateTimer

UpdateItem ( IListItemEx obj1, IListItemEx obj2 ) : void
UpdateItem ( Int32 index ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDragDrop ( System.Windows.Forms e ) : void
OnDragEnter ( System.Windows.Forms e ) : void
OnDragLeave ( EventArgs e ) : void
OnDragOver ( System.Windows.Forms e ) : void
OnGiveFeedback ( System.Windows.Forms e ) : void
OnHandleCreated ( EventArgs e ) : void
OnHandleDestroyed ( EventArgs e ) : void
OnQueryContinueDrag ( System.Windows.Forms e ) : void
OnSizeChanged ( EventArgs e ) : void

Приватные методы

Метод Описание
AutosizeColumn ( Int32 index, Int32 autosizeStyle ) : void
Column_OnClick ( Int32 iItem ) : void
Do_Copy_OR_Move_Helper ( Boolean copy, IListItemEx destination, IShellItem items ) : void
Do_Copy_OR_Move_Helper_2 ( Boolean copy, IListItemEx destination, System.Windows.Forms dataObject ) : void
Drag_SetEffect ( System.Windows.Forms e ) : void
DrawComputerTiledModeView ( IListItemEx sho, Graphics g, RectangleF lblrectTiles, StringFormat fmt ) : void
DrawNormalFolderSubitemsInTiledView ( IListItemEx sho, RectangleF lblrectTiles, Graphics g, StringFormat fmt ) : void
EndLabelEdit ( Boolean isCancel = false ) : void
GenerateGroupsFromColumn ( Collumns col, Boolean reversed = false ) : void
GetBadgeForPath ( String path ) : IListItemEx
GetFilePropertiesString ( Object value ) : String
GetFirstIndexOf ( String search, Int32 startindex ) : Int32

Returns the index of the first item whose display name starts with the search string.

GetFirstSelectedItem ( ) : IListItemEx
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadSettingsFromDatabase ( IListItemEx directory, FolderSettings &folderSettings ) : Boolean
Navigate ( IListItemEx destination, Boolean isInSameTab = false, Boolean refresh = false, Boolean isCancel = false ) : void
NavigateSearch ( IListItemEx destination, Boolean isInSameTab = false, Boolean refresh = false, Boolean isCancel = false ) : void
OnItemMiddleClick ( ) : void
OnSelectionChanged ( ) : void
PrepareSearchQuery ( String query ) : String
ProcessCustomDraw ( Message &m, NMHDR &nmhdr ) : void
ProcessCustomDrawPostPaint ( Message &m, User32 nmlvcd, Int32 index, IntPtr hdc, IListItemEx sho, Color textColor ) : void
ProcessShellNotifications ( Message &m ) : void
QueueDeleteItem ( FileSystemEventArgs args ) : void
RedrawWindow ( ) : void
RedrawWindow ( User32 rect ) : void
RenameItem ( Int32 index ) : void
ResortListViewItems ( ) : void
RetrieveThumbnailByIndex ( Int32 index ) : void
SetSortIcon ( Int32 columnIndex, SortOrder order ) : void

This is only to be used in SetSortCollumn(...)

ShellView_GotFocus ( ) : void
ShellView_KeyDown ( Keys e ) : Boolean
ShellView_MouseUp ( Object sender, MouseEventArgs e ) : void
StartProcessInCurrentDirectory ( IListItemEx item ) : void
ThreadRun_Helper ( SyncQueue queue, Boolean useComplexCheck, Int32 &index ) : Boolean
ToLvItemIndex ( Int32 index ) : LVITEMINDEX
UpdateColsInView ( Boolean isDetails = false ) : void
UpdateIconCacheForFolder ( String wszPath ) : void
WndProc ( Message &m ) : void
_MaintenanceTimer_Tick ( Object sender, EventArgs e ) : void
_UnvalidateTimer_Tick ( Object sender, EventArgs e ) : void
resetTimer_Tick ( Object sender, EventArgs e ) : void
selectionTimer_Tick ( Object sender, EventArgs e ) : void

Описание методов

AutosizeAllColumns() публичный Метод

Automatically resize all controls
public AutosizeAllColumns ( Int32 autosizeParam ) : void
autosizeParam System.Int32 ??
Результат void

CancelNavigation() публичный Метод

Cancels navigation
public CancelNavigation ( ) : void
Результат void

ClearFolderIcon() публичный Метод

Removes the folder's icon
public ClearFolderIcon ( String wszPath ) : HResult
wszPath String ??
Результат HResult

CopySelectedFiles() публичный Метод

public CopySelectedFiles ( ) : void
Результат void

CreateNewFolder() публичный Метод

Creates a new folder in the current directory and assigns a default name if none is specified. Returns the name
public CreateNewFolder ( String name ) : String
name String The name of the new folder
Результат String

CreateNewLibrary() публичный Метод

Creates a new library folder
public CreateNewLibrary ( String name ) : ShellLibrary
name String The name of the lbrary folder youi want
Результат ShellLibrary

CutSelectedFiles() публичный Метод

public CutSelectedFiles ( ) : void
Результат void

DeSelectAllItems() публичный Метод

Sets focus to tis control then deselects all items
public DeSelectAllItems ( ) : void
Результат void

DeleteSelectedFiles() публичный Метод

public DeleteSelectedFiles ( Boolean isRecycling ) : void
isRecycling Boolean
Результат void

DisableGroups() публичный Метод

Disables/Removes grouping
public DisableGroups ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

DoCopy() публичный Метод

public DoCopy ( System.Windows.Forms dataObject, IListItemEx destination ) : void
dataObject System.Windows.Forms
destination IListItemEx
Результат void

DoCopy() публичный Метод

public DoCopy ( IListItemEx destination ) : void
destination IListItemEx
Результат void

DoCopy() публичный Метод

public DoCopy ( System dataObject, IListItemEx destination ) : void
dataObject System
destination IListItemEx
Результат void

DoMove() публичный Метод

public DoMove ( System.Windows.Forms dataObject, IListItemEx destination ) : void
dataObject System.Windows.Forms
destination IListItemEx
Результат void

DoMove() публичный Метод

public DoMove ( IListItemEx destination ) : void
destination IListItemEx
Результат void

DoMove() публичный Метод

public DoMove ( System dataObject, IListItemEx destination ) : void
dataObject System
destination IListItemEx
Результат void

EnableGroups() публичный Метод

Enables/Adds groupings
public EnableGroups ( ) : void
Результат void

Focus() публичный Метод

Gives the ShellListView focus
public Focus ( Boolean isActiveCheck = true, Boolean isForce = false ) : void
isActiveCheck Boolean Require this application's MainWindow to be activate the control
isForce Boolean Force this to make the control active no matter what
Результат void

GetFirstSelectedItemIndex() публичный Метод

Returns the first selected item's index OR -1 if there is no selected item
public GetFirstSelectedItemIndex ( ) : Int32
Результат Int32

GetGroupIndex() публичный Метод

public GetGroupIndex ( Int32 itemIndex ) : Int32
itemIndex Int32
Результат Int32

GetIntPtrFromData() публичный статический Метод

public static GetIntPtrFromData ( Object data ) : IntPtr
data Object
Результат IntPtr

GetSelectedCount() публичный Метод

public GetSelectedCount ( ) : Int32
Результат Int32

InsertNewItem() публичный Метод

Inserts a new item into the control If and only If it is new. Returns the item's index OR -1 if already existing
public InsertNewItem ( IListItemEx obj ) : Int32
obj IListItemEx The item you want to insert
Результат Int32

InvertSelection() публичный Метод

Inverse the selection of items
public InvertSelection ( ) : void
Результат void

IsDropDescriptionValid() публичный статический Метод

public static IsDropDescriptionValid ( System dataObject ) : Boolean
dataObject System
Результат Boolean

IsShowingLayered() публичный статический Метод

public static IsShowingLayered ( System.Windows.Forms dataObject ) : Boolean
dataObject System.Windows.Forms
Результат Boolean

NavigateParent() публичный Метод

Navigates to the parent of the currently displayed folder.
public NavigateParent ( ) : void
Результат void

Navigate_Full() публичный Метод

Navigate to a folder, set it as the current folder and optionally save the folder's settings to the database.
public Navigate_Full ( IListItemEx destination, Boolean saveFolderSettings, Boolean isInSameTab = false, Boolean refresh = false ) : void
destination IListItemEx The folder you want to navigate to.
saveFolderSettings Boolean Should the folder's settings be saved?
isInSameTab Boolean
refresh Boolean Should the List be Refreshed?
Результат void

Navigate_Full() публичный Метод

Navigates to a search folder
public Navigate_Full ( String SearchQuery, Boolean saveFolderSettings, Boolean isInSameTab = false, Boolean refresh = false ) : void
SearchQuery String The query of the search
saveFolderSettings Boolean Should the folder's settings be saved?
isInSameTab Boolean
refresh Boolean Should the List be Refreshed?
Результат void

OnDragDrop() защищенный Метод

protected OnDragDrop ( System.Windows.Forms e ) : void
e System.Windows.Forms
Результат void

OnDragEnter() защищенный Метод

protected OnDragEnter ( System.Windows.Forms e ) : void
e System.Windows.Forms
Результат void

OnDragLeave() защищенный Метод

protected OnDragLeave ( EventArgs e ) : void
e EventArgs
Результат void

OnDragOver() защищенный Метод

protected OnDragOver ( System.Windows.Forms e ) : void
e System.Windows.Forms
Результат void

OnGiveFeedback() защищенный Метод

protected OnGiveFeedback ( System.Windows.Forms e ) : void
e System.Windows.Forms
Результат void

OnHandleCreated() защищенный Метод

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
Результат void

OnHandleDestroyed() защищенный Метод

protected OnHandleDestroyed ( EventArgs e ) : void
e EventArgs
Результат void

OnQueryContinueDrag() защищенный Метод

protected OnQueryContinueDrag ( System.Windows.Forms e ) : void
e System.Windows.Forms
Результат void

OnSizeChanged() защищенный Метод

protected OnSizeChanged ( EventArgs e ) : void
e EventArgs
Результат void

OpenOrNavigateItem() публичный Метод

If the Current item IsFolder Then navigate to it Else open item
public OpenOrNavigateItem ( ) : void
Результат void

OpenShareUI() публичный Метод

public OpenShareUI ( ) : void
Результат void

PasteAvailableFiles() публичный Метод

public PasteAvailableFiles ( ) : void
Результат void

RaiseItemUpdated() публичный Метод

public RaiseItemUpdated ( ItemUpdateType type, IListItemEx old, IListItemEx newItem, Int32 index ) : void
type ItemUpdateType
old IListItemEx
newItem IListItemEx
index Int32
Результат void

RaiseMiddleClickOnItem() публичный Метод

public RaiseMiddleClickOnItem ( IListItemEx item ) : void
item IListItemEx
Результат void

RaiseRecycleBinUpdated() публичный Метод

public RaiseRecycleBinUpdated ( ) : void
Результат void

RedrawItem() публичный Метод

public RedrawItem ( Int32 index, Int32 delay = -1 ) : void
index Int32
delay Int32
Результат void

RefreshContents() публичный Метод

Refreshes the contact (by navigating to the current folder If and only If the current folder is not null)
public RefreshContents ( ) : void
Результат void

RefreshItem() публичный Метод

Refreshes a single item
public RefreshItem ( Int32 index, Boolean isForceRedraw = false ) : void
index Int32 The index of the item you want to refresh
isForceRedraw Boolean If True Resets everything in the Item to indicate that it needs to be refreshed/reloaded
Результат void

RemoveAllCollumns() публичный Метод

public RemoveAllCollumns ( ) : void
Результат void

RenameSelectedItem() публичный Метод

Renames the first selected item
public RenameSelectedItem ( ) : void
Результат void

RenameSelectedItem() публичный Метод

Renames the item at the specified index
public RenameSelectedItem ( Int32 index ) : void
index Int32 The index of the item you want to rename
Результат void

RenameShellItem() публичный Метод

public RenameShellItem ( IShellItem item, String newName, Boolean isAddFileExtension, String extension = "" ) : void
item IShellItem
newName String
isAddFileExtension Boolean
extension String
Результат void

ResetFolderSettings() публичный Метод

Resets the current folder's settings by deting it from the SQLIte database
public ResetFolderSettings ( ) : void
Результат void

ResizeIcons() публичный Метод

Resizes the icons
public ResizeIcons ( Int32 value ) : void
value Int32 The icon size you want
Результат void

SaveSettingsToDatabase() публичный Метод

Saves the current destination settings to the SQLite database
public SaveSettingsToDatabase ( IListItemEx destination ) : void
destination IListItemEx The destination whos settings you want to save
Результат void

SelectAll() публичный Метод

Selects all items and sets this to focus
public SelectAll ( ) : void
Результат void

SelectItemByIndex() публичный Метод

Set this to focus then select an item by its index
public SelectItemByIndex ( Int32 index, Boolean ensureVisability = false, Boolean deselectOthers = false ) : void
index Int32 Index of item
ensureVisability Boolean Ensure that the item is visible?
deselectOthers Boolean Deselect all other items?
Результат void

SelectItems() публичный Метод

Selects only the specified items. First runs DeSelectAllItems Then selects all items on a separate thread.
public SelectItems ( IListItemEx shellObjectArray ) : void
shellObjectArray IListItemEx
Результат void

SetColInView() публичный Метод

public SetColInView ( Collumns col, Boolean remove ) : void
col Collumns
remove Boolean
Результат void

SetFolderIcon() публичный Метод

Sets the folder's icon
public SetFolderIcon ( String wszPath, String wszExpandedIconPath, Int32 iIcon ) : void
wszPath String ??
wszExpandedIconPath String ??
iIcon Int32 ??
Результат void

SetGroupOrder() публичный Метод

Sets the Sort order of the Groups
public SetGroupOrder ( Boolean reverse = true ) : void
reverse Boolean Reverse the Current Sort Order?
Результат void

SetSortCollumn() публичный Метод

public SetSortCollumn ( Boolean isReorder, Collumns column, SortOrder order, Boolean reverseOrder = true ) : void
isReorder Boolean
column Collumns
order SortOrder
reverseOrder Boolean
Результат void

ShellView() публичный Метод

Main constructor
public ShellView ( ) : BExplorer.Shell._Plugin_Interfaces
Результат BExplorer.Shell._Plugin_Interfaces

ShowPropPage() публичный Метод

public ShowPropPage ( IntPtr HWND, String filename, String proppage ) : void
HWND IntPtr
filename String
proppage String
Результат void

UnvalidateDirectory() публичный Метод

Invalidates the director
Starts restarts _UnvalidateTimer
public UnvalidateDirectory ( ) : void
Результат void

UpdateItem() публичный Метод

public UpdateItem ( IListItemEx obj1, IListItemEx obj2 ) : void
obj1 IListItemEx
obj2 IListItemEx
Результат void

UpdateItem() публичный Метод

public UpdateItem ( Int32 index ) : void
index Int32
Результат void

Описание свойств

AllAvailableColumns публичное свойство

public Dictionary AllAvailableColumns
Результат Collumns>.Dictionary

BadgesData публичное свойство

public Dictionary>> BadgesData
Результат Dictionary>>

Collumns публичное свойство

public List Collumns
Результат List

CurrentRefreshedItemIndex публичное свойство

public Int32 CurrentRefreshedItemIndex
Результат Int32

Groups публичное свойство

public List Groups
Результат List

IsCancelRequested публичное свойство

public Boolean IsCancelRequested
Результат Boolean

IsFocusAllowed публичное свойство

public Boolean IsFocusAllowed
Результат Boolean

IsNavigationCancelRequested публичное свойство

public Boolean IsNavigationCancelRequested
Результат Boolean

IsNavigationInProgress публичное свойство

public Boolean IsNavigationInProgress
Результат Boolean

IsRenameInProgress публичное свойство

public Boolean IsRenameInProgress
Результат Boolean

IsSearchNavigating публичное свойство

Are we/have we navigated to a search folder
public Boolean IsSearchNavigating
Результат Boolean

IsViewSelectionAllowed публичное свойство

public Boolean IsViewSelectionAllowed
Результат Boolean

LargeImageList публичное свойство

public ImageListEx LargeImageList
Результат ImageListEx

SmallImageList публичное свойство

public ImageListEx SmallImageList
Результат ImageListEx

ToolTip публичное свойство

public ToolTip ToolTip
Результат ToolTip