ImageGear .NET - Updated
Item Method (ImGearThumbnailCtl)
Example 




ImageGear24.Windows.Forms Assembly > ImageGear.Windows.Forms.Thumbnails Namespace > ImGearThumbnailCtl Class : Item Method
Index of the requested thumbnail.
Returns ImGearThumbnailItem object by given index.
Syntax
'Declaration
 
<DescriptionAttribute()>
Public Function Item( _
   ByVal index As Integer _
) As ImGearThumbnailItem
'Usage
 
Dim instance As ImGearThumbnailCtl
Dim index As Integer
Dim value As ImGearThumbnailItem
 
value = instance.Item(index)
[Description()]
public ImGearThumbnailItem Item( 
   int index
)
[Description()]
public: ImGearThumbnailItem* Item( 
   int index
) 
[Description()]
public:
ImGearThumbnailItem^ Item( 
   int index
) 

Parameters

index
Index of the requested thumbnail.

Return Value

ImGearThumbnailItem class object.
Example
// Delete the first selected item found.
for (int index = 0; index < igThumbnailCtl.Count; index++)
{
    ImGearThumbnailItem igThumbnailItem = igThumbnailCtl.Item(index);
    if (igThumbnailItem.Selected)
    {
        igThumbnailCtl.DeleteItem(igThumbnailItem);
        break;
    }
}
' Delete the first selected item found.
For index As Integer = 0 To igThumbnailCtl.Count - 1
    Dim igThumbnailItem As ImGearThumbnailItem = igThumbnailCtl.Item(index)
    If igThumbnailItem.Selected Then
        igThumbnailCtl.DeleteItem(igThumbnailItem)
        Exit For
    End If
Next
See Also

Reference

ImGearThumbnailCtl Class
ImGearThumbnailCtl Members
ImGearThumbnailItem Class