CogImageFile Count Property Cognex VisionPro 9.25 SR1
Gets the number of items contained in this collection.

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 93.1.0.0
Syntax

public virtual int Count { get; }

Property Value

Type: Int32

Implements

ICollection Count
Examples

Imports Cognex.VisionPro.ImageFile

' Find the count of images in an image fileDim ImageFile as New CogImageFile
imagefile.Open("c:\image.cdb", CogImageFileModeConstants.Read)
Dim ImageCount As Integer
ImageCount = ImageFile.Count
using Cognex.VisionPro.ImageFile;

// Find the count of images in an image fileDim ImageFile as New CogImageFile
imagefile.Open("c:\\image.cdb", CogImageFileModeConstants.Read);
int ImageCount;
ImageCount = imagefile.Count;
See Also