C# Класс Manina.Windows.Forms.ImageListViewItem

Represents an item in the image list view.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddSubItemText void
GetSimpleRating ushort
GetSubItemText string
PathForShellIcon string
RemoveAllSubItemTexts void
RemoveSubItemText bool
UpdateDetailsInternal void
UpdateFileInfo void
UpdateGroup void
UpdateRating void

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

Метод Описание
BeginEdit ( ) : void

Begins editing the item. This method must be used while editing the item to prevent collisions with the cache manager.

Clone ( ) : object

Creates a new object that is a copy of the current instance.

EndEdit ( ) : void

Ends editing and updates the item.

EndEdit ( bool update ) : void

Ends editing and updates the item.

GetCachedImage ( CachedImageType imageType ) : Image

Gets an image from the cache manager. If the thumbnail image is not cached, it will be added to the cache queue and DefaultImage of the owner image list view will be returned. If the thumbnail could not be cached ErrorImage of the owner image list view will be returned.

GetSubItemText ( ColumnType type ) : string

Returns the sub item item text corresponding to the specified column type.

GetSubItemText ( int index ) : string

Returns the sub item item text corresponding to the custom column with the given index.

ImageListViewItem ( ) : System

Initializes a new instance of the ImageListViewItem class.

ImageListViewItem ( object key ) : System

Initializes a new instance of a virtual ImageListViewItem class.

ImageListViewItem ( object key, string text ) : System

Initializes a new instance of a virtual ImageListViewItem class.

ImageListViewItem ( string filename ) : System

Initializes a new instance of the ImageListViewItem class.

ImageListViewItem ( string filename, string text ) : System

Initializes a new instance of the ImageListViewItem class.

SetSubItemText ( int index, string text ) : void

Sets the sub item item text corresponding to the custom column with the given index.

ToString ( ) : string

Returns a System.String that represents this instance.

Update ( ) : void

Updates item thumbnail and item details.

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

Метод Описание
AddSubItemText ( System.Guid guid ) : void

Adds a new subitem for the specified custom column.

GetSimpleRating ( ) : ushort

Gets the simpel rating (0-5)

GetSubItemText ( System.Guid guid ) : string

Returns the sub item item text corresponding to the specified custom column.

PathForShellIcon ( ) : string

Returns a path string to be used for extracting the shell icon of the item. Returns the filename for icon files and executables, file extension for other files.

RemoveAllSubItemTexts ( ) : void

Removes all sub item item texts.

RemoveSubItemText ( System.Guid guid ) : bool

Removes the sub item item text corresponding to the specified custom column.

UpdateDetailsInternal ( Utility info ) : void

Invoked by the worker thread to update item details.

UpdateFileInfo ( ) : void

Updates file info for the image file represented by this item. Item details will be updated synchronously without waiting for the cache thread.

UpdateGroup ( ImageListView column ) : void

Updates group order and name of the item.

UpdateRating ( ) : void

Sets the simple rating (0-5) from rating (0-99).

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

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

Begins editing the item. This method must be used while editing the item to prevent collisions with the cache manager.
public BeginEdit ( ) : void
Результат void

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

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

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

Ends editing and updates the item.
public EndEdit ( ) : void
Результат void

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

Ends editing and updates the item.
public EndEdit ( bool update ) : void
update bool If set to true, the item will be immediately updated.
Результат void

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

Gets an image from the cache manager. If the thumbnail image is not cached, it will be added to the cache queue and DefaultImage of the owner image list view will be returned. If the thumbnail could not be cached ErrorImage of the owner image list view will be returned.
public GetCachedImage ( CachedImageType imageType ) : Image
imageType CachedImageType Type of cached image to return.
Результат Image

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

Returns the sub item item text corresponding to the specified column type.
public GetSubItemText ( ColumnType type ) : string
type ColumnType The type of information to return.
Результат string

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

Returns the sub item item text corresponding to the custom column with the given index.
public GetSubItemText ( int index ) : string
index int Index of the custom column.
Результат string

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

Initializes a new instance of the ImageListViewItem class.
public ImageListViewItem ( ) : System
Результат System

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

Initializes a new instance of a virtual ImageListViewItem class.
public ImageListViewItem ( object key ) : System
key object The key identifying this item.
Результат System

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

Initializes a new instance of a virtual ImageListViewItem class.
public ImageListViewItem ( object key, string text ) : System
key object The key identifying this item.
text string Text of this item.
Результат System

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

Initializes a new instance of the ImageListViewItem class.
public ImageListViewItem ( string filename ) : System
filename string The image filename representing the item.
Результат System

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

Initializes a new instance of the ImageListViewItem class.
public ImageListViewItem ( string filename, string text ) : System
filename string The image filename representing the item.
text string Item text
Результат System

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

Sets the sub item item text corresponding to the custom column with the given index.
public SetSubItemText ( int index, string text ) : void
index int Index of the custom column.
text string New sub item text
Результат void

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

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

Updates item thumbnail and item details.
public Update ( ) : void
Результат void