How do I access a style in the Favorites folder

268
1
05-01-2018 05:42 PM
TomFlahive
New Contributor III

I am able to access styles that appear in the system styles folders, such as ArcGIS 2D.  The code looks like this:

var arcgis_2d = ArcGIS.Desktop.Core.Project.Current.GetItems<StyleProjectItem>().First(si => si.Name == "ArcGIS 2D");  

But that code does not allow me to get to styles in the Favorites folder:

How would I access styles in the Favorites folder?  Thanks.

0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

Accessing the favorite style in a project is not supported.  But you should be able to create your own personal style and add items to it. This personal style will be accessible using the SDK.

Thanks

Uma 

0 Kudos