Select to view content in your preferred language

Select By Attributes

453
1
05-31-2010 04:11 AM
NehayaArabeiat
Emerging Contributor
Hi All,

I want to select features from feature layer depends on a query filter and then zoom to selected features, How can I do that , can you help please??


Thanks
0 Kudos
1 Reply
ThavitinaiduGulivindala
Regular Contributor
Cast IFeatureLayer object to IFeatureSelection inerface. Use IFeatureSelection interface to select features using query filter.
http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriCarto/IFeatureSelection_SelectFeatures.htm

Here is the way to run the built-in ArcMap Command. Hence u can run 'Zoom To Selected Features' command in the same way.
http://edndoc.esri.com/arcobjects/9.2/NET/858a508c-b771-467c-81e6-c6aa72d88f9c.htm
0 Kudos