ImageGear for .NET
Item Method
See Also  Example Send Feedback
ImageGear21.Windows.Forms Assembly > ImageGear.Windows.Forms.Thumbnails Namespace > ImGearThumbnailCtl Class : Item Method




index
Index of the requested thumbnail.

Glossary Item Box

Returns ImGearThumbnailItem object by given index.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

index
Index of the requested thumbnail.

Return Value

ImGearThumbnailItem class object.

Example

C#Copy Code
// 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;
    }
}
Visual BasicCopy Code
' 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

©2013. Accusoft Corporation. All Rights Reserved.