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";
//Note: Needs QueuedTask to run
StyleHelper.CreateStyle(Project.Current, styleToCreate);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)