Select to view content in your preferred language

How do I access a style in the Favorites folder

381
1
05-01-2018 05:42 PM
TomFlahive
Occasional Contributor

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