FormFix v6.0 for .NET - Updated
GetIndexOfType Method (DataItemCollection)



Accusoft.FormDirectorSdk Namespace > DataItemCollection Class : GetIndexOfType Method
The type to search for in the collection.
Determines whether a DataItem with the given type is in the collection and returns its index.
Syntax
'Declaration
 
Public Function GetIndexOfType( _
   ByVal type As String _
) As Integer
'Usage
 
Dim instance As DataItemCollection
Dim type As String
Dim value As Integer
 
value = instance.GetIndexOfType(type)
public int GetIndexOfType( 
   string type
)
public:
int GetIndexOfType( 
   String^ type
) 

Parameters

type
The type to search for in the collection.

Return Value

If the DataItem 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 searches the collection for a DataItem whose Type matches the given type. 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, if or multiple objects in the collection have the same Type, this method will return the lowest index of a match.

See Also

Reference

DataItemCollection Class
DataItemCollection Members
IndexOf Method

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