private void Test_Identify(IPoint pPoint)
{
IIdentify pIdentify = m_Map.get_Layer(1) as IIdentify;
IEnvelope pEnvelope = m_MapControl.ActiveView.Extent;
pEnvelope.Height = 100;
pEnvelope.Width = 100;
pEnvelope.CenterAt(pPoint);
IArray pArray = pIdentify.Identify(pEnvelope);
if (pArray == null) return;
for (int i = 0; i < pArray.Count; i++)
{
IFeatureIdentifyObj pFeatureIdentifyObj = pArray.get_Element(i) as IFeatureIdentifyObj;
IIdentifyObj pIdentifyObj = pFeatureIdentifyObj as IIdentifyObj;
pIdentifyObj.Flash(m_MapControl.ActiveView.ScreenDisplay);
}
}
{
IIdentify pIdentify = m_Map.get_Layer(1) as IIdentify;
IEnvelope pEnvelope = m_MapControl.ActiveView.Extent;
pEnvelope.Height = 100;
pEnvelope.Width = 100;
pEnvelope.CenterAt(pPoint);
IArray pArray = pIdentify.Identify(pEnvelope);
if (pArray == null) return;
for (int i = 0; i < pArray.Count; i++)
{
IFeatureIdentifyObj pFeatureIdentifyObj = pArray.get_Element(i) as IFeatureIdentifyObj;
IIdentifyObj pIdentifyObj = pFeatureIdentifyObj as IIdentifyObj;
pIdentifyObj.Flash(m_MapControl.ActiveView.ScreenDisplay);
}
}