Select to view content in your preferred language

Finding record in layer atributes with certain value of attribute

727
1
11-10-2010 09:55 PM
AnatoliiTerentiev
Deactivated User
I have some Feature layer in map and want to get coordinates of object. For this I must
find record with certain  value of attribute "name" of object, .
At first I get this layer :
layer =(ESRI.ArcGIS.Carto.IFeatureLayer)axMapControl1.get_Layer(6)

But I can't get "Find" method in that layer.
  Can't anybody say - what I do wrong?
Thanks for any advice!
0 Kudos
1 Reply
vincentLahaye
Emerging Contributor
Hi,

you should get your feature from a cursor with a queryfilter.

From your searched feature, you can get x,y with feature's envelope

Vincent
0 Kudos