FormFix v6.0 for .NET - Updated
IndexOf Method (TemplateImageCollection)



Accusoft.FormDirectorSdk Namespace > TemplateImageCollection Class : IndexOf Method
The object to search for in the collection.
Determines whether the specified TemplateImage is in the collection and returns its index.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal value As TemplateImage _
) As Integer
'Usage
 
Dim instance As TemplateImageCollection
Dim value As TemplateImage
Dim value As Integer
 
value = instance.IndexOf(value)
public int IndexOf( 
   TemplateImage value
)
public:
int IndexOf( 
   TemplateImage^ value
) 

Parameters

value
The object to search for in the collection.

Return Value

If the TemplateImage is present in the collection, this method will return the zero-based index of the first occurrence of it; otherwise this method will return -1.
Remarks

This method implements a standard collection operation. It searches the collection for a reference to the given object. If it finds a reference to it, it will return its index. If it cannot find a reference to it, this method will return -1. If the object is present more than once in the collection, this method will return the lowest index of a match.

See Also

Reference

TemplateImageCollection Class
TemplateImageCollection Members
Contains Method
GetIndexOfType Method

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