<?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 Adding an image to add-in multi-item.item in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-an-image-to-add-in-multi-item-item/m-p/434911#M11769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to add an image to some items in my multi-item collection to be displayed in a dropdown menu. First question is how to add images to an add-in project. I know that they have to be added so that they can be included in the packaged add-in file. Just copying them into the /images directory in the add-in project folder doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second question is how to access them in the customized multi-item class. MultiItem.Item.Image property requires a System.Drawing.Image object. I've tried to create this with Image.FromFile method which requires a system path. The only thing that works is the complete path to the image on my machine which isn't pointed at the add-in and obviously wouldn't work anywhere else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 18:20:18 GMT</pubDate>
    <dc:creator>LesleyBross</dc:creator>
    <dc:date>2010-08-26T18:20:18Z</dc:date>
    <item>
      <title>Adding an image to add-in multi-item.item</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-an-image-to-add-in-multi-item-item/m-p/434911#M11769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to add an image to some items in my multi-item collection to be displayed in a dropdown menu. First question is how to add images to an add-in project. I know that they have to be added so that they can be included in the packaged add-in file. Just copying them into the /images directory in the add-in project folder doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second question is how to access them in the customized multi-item class. MultiItem.Item.Image property requires a System.Drawing.Image object. I've tried to create this with Image.FromFile method which requires a system path. The only thing that works is the complete path to the image on my machine which isn't pointed at the add-in and obviously wouldn't work anywhere else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 18:20:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-an-image-to-add-in-multi-item-item/m-p/434911#M11769</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2010-08-26T18:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an image to add-in multi-item.item</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-an-image-to-add-in-multi-item-item/m-p/434912#M11770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, as usual, I was way overthinking this. A better way to accomplish my goal is to create a button control for each item on my menu. Button controls have images associated with them. Configure buttons under the Items property of Menu. And voila!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, if you want to disable a button at startup, you need to set the onDemand property to false in the XML. This is in the doc but I didn't see it right away.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 20:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-an-image-to-add-in-multi-item-item/m-p/434912#M11770</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2010-08-26T20:13:20Z</dc:date>
    </item>
  </channel>
</rss>

