ImageGear PDF v25.2 - Updated
Count Property (ImGearThumbnailCtl)
Example 




ImageGear.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
 
<BrowsableAttribute(False)>
<DescriptionAttribute()>
Public ReadOnly Property Count As Integer
'Usage
 
Dim instance As ImGearThumbnailCtl
Dim value As Integer
 
value = instance.Count
[Browsable(false)]
[Description()]
public int Count {get;}
[Browsable(false)]
[Description()]
public: __property int get_Count();
[Browsable(false)]
[Description()]
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

Is this page helpful?
Yes No
Thanks for your feedback.