Parameters
- fieldName
- The name of the field to be found.
Return Value
A positive integer value if the field is found indicating the index position of the field. If a field is not found with a name matching the fieldName, a -1 is returned.
Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
row[field.Name] = "{" + guid.ToString() + "}";
//Return the page number that corresponds to the page name field for an index feature Layout layout = LayoutView.Active.Layout; //Perform on the worker thread await QueuedTask.Run(() => { SpatialMapSeries SMS = layout.MapSeries as SpatialMapSeries; Row msRow = SMS.CurrentRow; System.Windows.MessageBox.Show(SMS.FindPageNumber(msRow.GetOriginalValue(msRow.FindField("NAME")).ToString())); });
Target Platforms: Windows 11, Windows 10, Windows 8.1