<?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 How do I label features programmatically using arcobjects? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449210#M12198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to label the features of feature layers in my TOC. This has to be using the &lt;STRONG&gt;CommandBar&lt;/STRONG&gt; and &lt;STRONG&gt;CommandItem&lt;/STRONG&gt;. How should I go about it? Some heads up will be appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 17:06:57 GMT</pubDate>
    <dc:creator>AmritKumar1</dc:creator>
    <dc:date>2016-04-26T17:06:57Z</dc:date>
    <item>
      <title>How do I label features programmatically using arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449210#M12198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to label the features of feature layers in my TOC. This has to be using the &lt;STRONG&gt;CommandBar&lt;/STRONG&gt; and &lt;STRONG&gt;CommandItem&lt;/STRONG&gt;. How should I go about it? Some heads up will be appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 17:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449210#M12198</guid>
      <dc:creator>AmritKumar1</dc:creator>
      <dc:date>2016-04-26T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I label features programmatically using arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449211#M12199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already have a tool on a toolbar that displays the labels you would use the following code to find the command and just call ICommandItem.Execute to execute the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#2ffb7cab-820e-4581-970f-49c887108f87.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't recall any out-of-the-box commands that display labels. In my code I display the labels using IGeoFeatureLayer.DisplayAnnotation. This is mentioned starting on the following page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working with labels and annotation (ArcObjects)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Working_with_labels_and_annotation/0001000000nt000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Working_with_labels_and_annotation/0001000000nt000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Working_with_labels_and_annotation/0001000000nt000000/&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449211#M12199</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2016-04-26T18:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I label features programmatically using arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449212#M12200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response @Freddie. I was able to complete the action using the DisplayAnnotation method, but I wanted to follow the commandItem methods for this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try out the code in the link you mentioned. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-label-features-programmatically-using/m-p/449212#M12200</guid>
      <dc:creator>AmritKumar1</dc:creator>
      <dc:date>2016-04-26T18:33:47Z</dc:date>
    </item>
  </channel>
</rss>

