ImageGear .NET - Updated
DeleteItem Method (ImGearThumbnailCtl)
Example 




ImageGear24.Windows.Forms Assembly > ImageGear.Windows.Forms.Thumbnails Namespace > ImGearThumbnailCtl Class : DeleteItem Method
Item to be removed.
Removes specified item from the Thumbnail control.
Syntax
'Declaration
 
<DescriptionAttribute()>
Public Sub DeleteItem( _
   ByVal item As ImGearThumbnailItem _
) 
'Usage
 
Dim instance As ImGearThumbnailCtl
Dim item As ImGearThumbnailItem
 
instance.DeleteItem(item)
[Description()]
public void DeleteItem( 
   ImGearThumbnailItem item
)
[Description()]
public: void DeleteItem( 
   ImGearThumbnailItem* item
) 
[Description()]
public:
void DeleteItem( 
   ImGearThumbnailItem^ item
) 

Parameters

item
Item to be removed.
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