C# Class Manina.Windows.Forms.ImageListViewItem

Represents an item in the image list view.
Mostra file Open project: oozcitak/imagelistview Class Usage Examples

Private Properties

Property Type Description
AddSubItemText void
GetSimpleRating ushort
GetSubItemText string
PathForShellIcon string
RemoveAllSubItemTexts void
RemoveSubItemText bool
UpdateDetailsInternal void
UpdateFileInfo void
UpdateGroup void
UpdateRating void

Public Methods

Method Description
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.

Private Methods

Method Description
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).

Method Details

BeginEdit() public method

Begins editing the item. This method must be used while editing the item to prevent collisions with the cache manager.
public BeginEdit ( ) : void
return void

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

EndEdit() public method

Ends editing and updates the item.
public EndEdit ( ) : void
return void

EndEdit() public method

Ends editing and updates the item.
public EndEdit ( bool update ) : void
update bool If set to true, the item will be immediately updated.
return void

GetCachedImage() public method

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.
return Image

GetSubItemText() public method

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.
return string

GetSubItemText() public method

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.
return string

ImageListViewItem() public method

Initializes a new instance of the ImageListViewItem class.
public ImageListViewItem ( ) : System
return System

ImageListViewItem() public method

Initializes a new instance of a virtual ImageListViewItem class.
public ImageListViewItem ( object key ) : System
key object The key identifying this item.
return System

ImageListViewItem() public method

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.
return System

ImageListViewItem() public method

Initializes a new instance of the ImageListViewItem class.
public ImageListViewItem ( string filename ) : System
filename string The image filename representing the item.
return System

ImageListViewItem() public method

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
return System

SetSubItemText() public method

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
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Update() public method

Updates item thumbnail and item details.
public Update ( ) : void
return void