<?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: Add style to Style Manager in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485171#M13103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't tried it, but what about the StyleGallery ?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;var mxDocument = application.Document as IMxDocument;&lt;/P&gt;&lt;P&gt;var styleGallery = mxDocument.StyleGallery;&lt;/P&gt;&lt;P&gt;styleGallery.LoadStyle(filename, null);&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;var styleGalleryStorage = mxDocument.StyleGallery as IStyleGalleryStorage;&lt;/P&gt;&lt;P&gt;styleGalleryStorage.AddFile(filename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001w00000322000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001w00000322000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; - IStyleGallery&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStyleGalleryStorage_Interface/001w00000339000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStyleGalleryStorage_Interface/001w00000339000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; - IStyleGalleryStorage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 20:52:14 GMT</pubDate>
    <dc:creator>ChrisKushnir</dc:creator>
    <dc:date>2015-04-30T20:52:14Z</dc:date>
    <item>
      <title>Add style to Style Manager</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485170#M13102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add a style to the Style Manager using ArcObjects. I guess this is done using IStyleImporter.Import. However, I haven't found a sample how to get a StyleImporter object. I tried to cocreate it, but it isn't possible. Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485170#M13102</guid>
      <dc:creator>BarbaraSchneider1</dc:creator>
      <dc:date>2015-04-30T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add style to Style Manager</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485171#M13103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't tried it, but what about the StyleGallery ?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;var mxDocument = application.Document as IMxDocument;&lt;/P&gt;&lt;P&gt;var styleGallery = mxDocument.StyleGallery;&lt;/P&gt;&lt;P&gt;styleGallery.LoadStyle(filename, null);&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;var styleGalleryStorage = mxDocument.StyleGallery as IStyleGalleryStorage;&lt;/P&gt;&lt;P&gt;styleGalleryStorage.AddFile(filename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001w00000322000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001w00000322000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; - IStyleGallery&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStyleGalleryStorage_Interface/001w00000339000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IStyleGalleryStorage_Interface/001w00000339000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; - IStyleGalleryStorage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 20:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485171#M13103</guid>
      <dc:creator>ChrisKushnir</dc:creator>
      <dc:date>2015-04-30T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add style to Style Manager</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485172#M13104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IStyleGalleryStorage.AddFile() is used to add a style to Style Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IStyleGallery.LoadStyle() is used to load a style from Style Gallery that is already present in Style Manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-style-to-style-manager/m-p/485172#M13104</guid>
      <dc:creator>BarbaraSchneider1</dc:creator>
      <dc:date>2015-05-04T08:48:13Z</dc:date>
    </item>
  </channel>
</rss>

