ImageGear .NET - Updated
Count Property (ImGearThumbnailCtl)
Example 




ImageGear24.Windows.Forms Assembly > ImageGear.Windows.Forms.Thumbnails Namespace > ImGearThumbnailCtl Class : Count Property
Gets the number of items within the Thumbnail control, and thus also the number of ImGearThumbnailItem objects available for Item method.
Syntax
'Declaration
 
<DescriptionAttribute()>
<BrowsableAttribute(False)>
Public ReadOnly Property Count As Integer
'Usage
 
Dim instance As ImGearThumbnailCtl
Dim value As Integer
 
value = instance.Count
[Description()]
[Browsable(false)]
public int Count {get;}
[Description()]
[Browsable(false)]
public: __property int get_Count();
[Description()]
[Browsable(false)]
public:
property int Count {
   int get();
}

Property Value

Integer value.
Example
if (igThumbnailCtl.Count > 0)
{
    for (int index = 0; index < igThumbnailCtl.Count; index++)
    {
        ImGearThumbnailItem igThumbnailItem = igThumbnailCtl.Item(index);
        // Perform some operations on each item.
    }
}
If igThumbnailCtl.Count > 0 Then
    For index As Integer = 0 To igThumbnailCtl.Count - 1
        ' Perform some operations on each item.
        Dim igThumbnailItem As ImGearThumbnailItem = igThumbnailCtl.Item(index)
    Next
End If
See Also

Reference

ImGearThumbnailCtl Class
ImGearThumbnailCtl Members