var tv = TableView.Active; if (tv == null) return; // field access var flds = tv.GetFields(); var fldIdx = tv.GetFieldIndex("STATE_NAME"); var fldDesc = tv.GetField(fldIdx);
var tv = TableView.Active; if (tv == null) return; // get active field, active field name var activeFieldIdx = tv.ActiveFieldIndex; var fldDesc = tv.GetField(activeFieldIdx); var fldName = fldDesc.Name; // set active field by name tv.SetActiveField("STATE_NAME"); // or set active field by index tv.SetActiveField(3);
System.Object
ArcGIS.Desktop.Mapping.FieldDescription
Target Platforms: Windows 11, Windows 10