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




Glossary Item Box

Gets the number of items within the Thumbnail control, and thus also the number of ImGearThumbnailItem objects available for Item method.

Syntax

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

Property Value

Integer value.

Example

C#Copy Code
if (igThumbnailCtl.Count > 0)
{
    for (int index = 0; index < igThumbnailCtl.Count; index++)
    {
        ImGearThumbnailItem igThumbnailItem = igThumbnailCtl.Item(index);
        // Perform some operations on each item.
    }
}
Visual BasicCopy Code
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

©2013. Accusoft Corporation. All Rights Reserved.