FormFix v6.0 for .NET - Updated
GetIndexOfName Method (FieldCollection)



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

Parameters

name
The name to search for in the collection.

Return Value

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

See Also

Reference

FieldCollection Class
FieldCollection Members
IndexOf Method

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