ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StyleHelper Class / CreateMobileStyle Method
The current ArcGIS Pro project to which the new mobile style will be added.
The full path on disk of the new mobile style file to be created.
Version

CreateMobileStyle Method
Creates a new mobile style file (.stylx) on disk and adds the mobile style to the current project. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static void CreateMobileStyle( 
   Project project,
   string styleName
)

Parameters

project
The current ArcGIS Pro project to which the new mobile style will be added.
styleName
The full path on disk of the new mobile style file to be created.
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also