<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem in reading attribute of the selected feature on Map in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-in-reading-attribute-of-the-selected/m-p/623273#M16759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selected a feature on Map , and i am trying to read the attribute&amp;nbsp; of the selected feature .&lt;/P&gt;&lt;P&gt;But all attributes are null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&lt;/P&gt;&lt;P&gt;ArcGIS 10.4 Engine&lt;/P&gt;&lt;P&gt;Postgresql 9.4 64 bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; onMouseDown(IMapControlEvents2OnMouseDownEvent &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;throws&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; AutomationException, IOException {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;.getMapX();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;.getMapY();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getButton() == 1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;try&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; selectFeaturesScreenPoint(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;mapBean&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getMap(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getX(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getY(),20);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; } &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;catch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; (Exception &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;e&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;) {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f9fbf; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;TODO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Auto-generated catch block&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;e&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.printStackTrace();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; selectFeaturesScreenPoint(IMap &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;throws&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Exception&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[] = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT[1];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0]=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Construct a small rectangle out of the x,y coordinates' pixel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// tolerance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;left&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Upper left x, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;top&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Upper left y, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;right&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Lower right x, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;bottom&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Lower right y, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Transform the device rectangle into a geographic rectangle via the&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// display transformation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IEnvelope &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Envelope();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IActiveView &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = (IActiveView)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IDisplayTransformation &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;displayXform&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getScreenDisplay()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; .getDisplayTransformation();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;displayXform&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.transformRect(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, 100); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// 5 = esriTransformPosition + esriTransformToMap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.setSpatialReferenceByRef(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getSpatialReference());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; ISelectionEnvironment &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; SelectionEnvironment();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.setCombinationMethod(esriSelectionResultEnum.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;esriSelectionResultNew&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.selectByShape(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.refresh();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getSelectionCount()&amp;gt;0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.println(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"Item is selected "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; MapSelection &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; MapSelection(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFeatureSelection());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.reset();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; IFeature &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.next();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.println(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"Selected Feature is "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;+&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFields().getFieldCount());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; Fields &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = (Fields) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFields();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fieldCount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFieldCount();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;// Go through each field and print to the console&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = 0; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fieldCount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;++) {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.print( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"\t"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;" "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; +&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getField(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;).getDefaultValue());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 09:42:54 GMT</pubDate>
    <dc:creator>SignalGroup</dc:creator>
    <dc:date>2017-05-29T09:42:54Z</dc:date>
    <item>
      <title>Problem in reading attribute of the selected feature on Map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-in-reading-attribute-of-the-selected/m-p/623273#M16759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selected a feature on Map , and i am trying to read the attribute&amp;nbsp; of the selected feature .&lt;/P&gt;&lt;P&gt;But all attributes are null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&lt;/P&gt;&lt;P&gt;ArcGIS 10.4 Engine&lt;/P&gt;&lt;P&gt;Postgresql 9.4 64 bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; onMouseDown(IMapControlEvents2OnMouseDownEvent &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;throws&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; AutomationException, IOException {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;.getMapX();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal;"&gt;.getMapY();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getButton() == 1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;try&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; selectFeaturesScreenPoint(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;mapBean&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getMap(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getX(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;event&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getY(),20);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; } &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;catch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; (Exception &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;e&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;) {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f9fbf; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;TODO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Auto-generated catch block&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;e&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.printStackTrace();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; selectFeaturesScreenPoint(IMap &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;throws&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Exception&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[] = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT[1];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0]=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; tagRECT();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Construct a small rectangle out of the x,y coordinates' pixel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// tolerance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;left&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Upper left x, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;top&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Upper left y, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;right&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Lower right x, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;[0].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;bottom&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;pixelTol&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Lower right y, top left is 0,0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// Transform the device rectangle into a geographic rectangle via the&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// display transformation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IEnvelope &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; Envelope();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IActiveView &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = (IActiveView)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; IDisplayTransformation &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;displayXform&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getScreenDisplay()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; .getDisplayTransformation();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;displayXform&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.transformRect(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;, 100); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;// 5 = esriTransformPosition + esriTransformToMap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en" style="margin-bottom: 0.35cm; font-weight: normal; line-height: 115%; text-decoration: none;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.setSpatialReferenceByRef(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.getSpatialReference());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; ISelectionEnvironment &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; SelectionEnvironment();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;.setCombinationMethod(esriSelectionResultEnum.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;esriSelectionResultNew&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.selectByShape(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;envelope&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;selectionEnv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;activeView&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.refresh();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getSelectionCount()&amp;gt;0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.println(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"Item is selected "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; MapSelection &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; MapSelection(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFeatureSelection());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.reset();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; IFeature &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;mapSelection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.next();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.println(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"Selected Feature is "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;+&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFields().getFieldCount());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; Fields &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = (Fields) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;feature&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFields();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fieldCount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getFieldCount();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;// Go through each field and print to the console&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="text-decoration: none; font-style: normal;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; = 0; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fieldCount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;++) {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; System.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN lang="en"&gt;&lt;EM style="text-decoration: none;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.print( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;"\t"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;" "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; +&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;fields&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;.getField(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;).getDefaultValue());&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.35cm; line-height: 115%;"&gt;&lt;SPAN style="color: #000000; font-size: small; font-family: Courier New,serif;"&gt;&lt;SPAN style="font-weight: normal; text-decoration: none; font-style: normal;"&gt; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 09:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-in-reading-attribute-of-the-selected/m-p/623273#M16759</guid>
      <dc:creator>SignalGroup</dc:creator>
      <dc:date>2017-05-29T09:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in reading attribute of the selected feature on Map</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-in-reading-attribute-of-the-selected/m-p/623274#M16760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Your logic is incorrect and I believe the final error is with this line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt;System.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; background-color: #ffffff; border: 0px; font-size: small;"&gt;&lt;SPAN lang="en" style="border: 0px; font-weight: inherit; text-decoration: none; font-size: 13px;"&gt;&lt;EM style="border: 0px; font-weight: bold; font-size: 13px;"&gt;&lt;STRONG&gt;out&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt;.print( &lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #2a00ff; text-decoration: none; font-size: 13px;"&gt;"\t"&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #2a00ff; text-decoration: none; font-size: 13px;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt; +&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #6a3e3e; text-decoration: none; font-size: 13px;"&gt;fields&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt;.getField(&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #6a3e3e; text-decoration: none; font-size: 13px;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 13px;"&gt;).getDefaultValue());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 15px;"&gt;You are returning the DEFAULT value, which is a geodatabase property, so if your layer is a shapefile this won't exist. Also the default value is a property that assigns a value to the field when you &lt;SPAN style="text-decoration: underline;"&gt;create a feature&lt;/SPAN&gt;, more information is &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/assign-default-to-field.htm"&gt;here&lt;/A&gt;. What you want to be returning is the value for the row or in this case the feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 15px;"&gt;It looks like you ASSUME you only ever select one feature; but as you are running the select on your map (rather than an individual layer), so you could potentially be selecting many features across many layers. Was that your intention?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 15px;"&gt;So assuming you do select a single feature you have got that by creating your &lt;EM&gt;feature&lt;/EM&gt; object. You would then read the values from each field for that row via IFeature.Value(). Currently you get the feature, ignore it completely and cycle through fields looking at an inappropriate property setting which may not even exist depending upon what the source of the data is.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 13:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-in-reading-attribute-of-the-selected/m-p/623274#M16760</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2017-05-30T13:50:05Z</dc:date>
    </item>
  </channel>
</rss>

