<?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 Re: Label Polygon corner /vertices coordinate  as graphic in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660955#M17733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Najad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have look at AddTextElement method in this sample &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000001rv000000.htm" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000001rv000000.htm"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Iterate through your polygon vertices by casting it as IPointCollection to get vertex geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 02:46:52 GMT</pubDate>
    <dc:creator>RiyasDeen</dc:creator>
    <dc:date>2014-09-22T02:46:52Z</dc:date>
    <item>
      <title>Label Polygon corner /vertices coordinate  as graphic</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660952#M17730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif;"&gt;Dear All &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif;"&gt;I am working now on ArcObject .Net to develop an gis application , i need your help in certain area , i can now get Polygon corner (vertices ) but how i can show the corner /vertices as graphic with it's label .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 18:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660952#M17730</guid>
      <dc:creator>NajdALHanahnah</dc:creator>
      <dc:date>2014-08-30T18:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Label Polygon corner /vertices coordinate  as graphic</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660953#M17731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help or advice Plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 18:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660953#M17731</guid>
      <dc:creator>NajdALHanahnah</dc:creator>
      <dc:date>2014-08-31T18:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Label Polygon corner /vertices coordinate  as graphic</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660954#M17732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This what i meant :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GIS123.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/13779_GIS123.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 10:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660954#M17732</guid>
      <dc:creator>NajdALHanahnah</dc:creator>
      <dc:date>2014-09-21T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Label Polygon corner /vertices coordinate  as graphic</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660955#M17733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Najad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have look at AddTextElement method in this sample &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000001rv000000.htm" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000001rv000000.htm"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Iterate through your polygon vertices by casting it as IPointCollection to get vertex geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 02:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660955#M17733</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-22T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Label Polygon corner /vertices coordinate  as graphic</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660956#M17734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a small piece of code that does what you need.&amp;nbsp; The code should work as it is pretty simple and I have not tested even for compilation. But this should get you started with ArcObjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Get the Polygon from the Feature.Shape property&lt;/P&gt;&lt;P&gt;public void AddPolygonVertexText(IMap map, IPolygon polygon)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; IPointCollection ptCollection = (IPointCollection)polygon;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IPoint outPoint=new PointClass();&lt;/P&gt;&lt;P&gt;&amp;nbsp; IGraphicsContainer graphicsContainer = map as IGraphicsContainer;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IElement txtElement=null;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(int ptCount=0;ptCount&amp;lt;ptCollection.PointCount;ptCount++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; ptCollection.QueryPoint(ptCount,outPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp; GetTextElement(outPoint,ptCount+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; graphicsContainer.AddElement(element, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ((IActiveView)map).PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Creates a TextElement and sends the result to the calling class&lt;/P&gt;&lt;P&gt;private ITextElement AddTextElement(IPoint pt,string labelTxt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; IElement element = new TextElementClass();&lt;/P&gt;&lt;P&gt;&amp;nbsp; ITextElement textElement = element as ITextElement;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IPoint point = new PointClass();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.X = pt.X;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.Y = pt.Y;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; element.Geometry = point;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; textElement.Text = labelText;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return textElement;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 02:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/label-polygon-corner-vertices-coordinate-160-as/m-p/660956#M17734</guid>
      <dc:creator>RavishankarJayaraman</dc:creator>
      <dc:date>2014-09-23T02:58:41Z</dc:date>
    </item>
  </channel>
</rss>

