Click or drag to resize

IMcImagesItem Property

Returns a McImage object found in the collection.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Default Property Item ( 
	Index As Object
) As McImage
	Get

Parameters

Index
Type: SystemObject

Property Value

Type: McImage
Remarks
The ToFind argument is usually an image index or an image Name (the same as the IMcImage::Name property). It can also be a McImage object, in which case the property will either return the same object or Nothing if that image is not part of the collection (see McImage.Collection and McImage.Close). In any case, Nothing is returned as the property value if the argument does not resolve to an image that is part of the collection. This is the default property of the McImages collection (see the Example)
Examples
VB
'See if BoneBig.jpg is in the collection and open it if not
Dim myImage As McImage
Set myImage = Images("bonebig_jpg")
If myImage Is Nothing Then 'not part of the collection?
Images.Open Path + "\Images\BoneBig.jpg"
Else 'already in the collection, so
Set ThisApplication.ActiveImage = myImage 'make it the ActiveImage
End If 'BoneBig_jpg is already in the collection
See Also