DeviceFrameRates.FindIndex Method

Returns the index of the supplied frame in the collection.
Syntax:
Public Function FindIndex( Rate As Single ) As Long
Parameter Description
Rate

Specifies the frame rate of the video capture device for which to search in the collection.

Return Value:

If the returned frame rate of the property DeviceFrameRates.Item is identical to the given single value, the FindIndex method returns the index of this frame rate in the collection. If the single frame rate is not found, the FindIndex method returns -1.

See also: DeviceFrameRates, DeviceFrameRates.Count, DeviceFrameRates.Item

<< DeviceFrameRates