C# Класс FilesBrowser.FilesListBox

Наследование: System.Windows.Forms.ListBox
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddDirectory void
AddFile void
GetFullName string
PopulatingItems void

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

Метод Описание
FilesListBox ( ) : System

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.

FilesListBox ( string directoryName ) : System

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.

Refresh ( ) : void

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

Метод Описание
OnDrawItem ( DrawItemEventArgs e ) : void

Paints each file with its icon.

OnFileSelected ( FileSelectEventArgs fse ) : void

Fires the FileSelected event.

OnMouseDoubleClick ( System e ) : void

Overrides, when double click on the list - fires the FileSelected event, or, for directory, move into it.

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

Метод Описание
AddDirectory ( string directoryName ) : void

Adds the specified directory to the list.

AddFile ( string fileName ) : void

Adds the specified file to the list.

GetFullName ( string fileNameOnly ) : string

Gets the full file name, by adding the directory name to the file specified.

PopulatingItems ( ) : void

Populate the list box with files and directories according to the directoryName property

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

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

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.
public FilesListBox ( ) : System
Результат System

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

Intializes a new instance of the FilesListBox class, to view a list of files inside a ListBox control.
public FilesListBox ( string directoryName ) : System
directoryName string The directory to start from
Результат System

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

Paints each file with its icon.
protected OnDrawItem ( DrawItemEventArgs e ) : void
e System.Windows.Forms.DrawItemEventArgs
Результат void

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

Fires the FileSelected event.
protected OnFileSelected ( FileSelectEventArgs fse ) : void
fse FileSelectEventArgs
Результат void

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

Overrides, when double click on the list - fires the FileSelected event, or, for directory, move into it.
protected OnMouseDoubleClick ( System e ) : void
e System
Результат void

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

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