ArcGIS Pro 2.9 API Reference Guide
GetFieldIndex Method

ArcGIS.Desktop.Editing Namespace > TableControl Class : GetFieldIndex Method
The name of the field.
Gets the index of the field with the given name.
Syntax
public int GetFieldIndex( 
   string fieldName
)
Public Function GetFieldIndex( _
   ByVal fieldName As String _
) As Integer

Parameters

fieldName
The name of the field.

Return Value

The index of the field. -1 is returned if the field name is not found.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

TableControl Class
TableControl Members