Parameters
- project
- The current ArcGIS Pro project to which the new style will be added.
- styleName
- The full path on disk of the new style file to be created.
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method must be called within the lambda passed to QueuedTask.Run |
//Full path for the new style file (.stylx) to be created string styleToCreate = @"C:\Temp\NewStyle.stylx"; await QueuedTask.Run(() => StyleHelper.CreateStyle(Project.Current, styleToCreate));
Target Platforms: Windows 10, Windows 8.1, Windows 7