IFeature feature = geoFeatureLayer.FeatureClass.GetFeature( geoFeatureLayer.FeatureClass.FeatureClassID ); geoFeatureLayer.Renderer.get_SymbolByFeature( feature );
It is not possible for a feature to have an ObjectId of -1.
GetFeature() takes the ObjectId of the feature you want it to return.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.