ArcGIS Pro 3.2 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.

In This Topic
    CreateMobileStyle Method
    In This Topic
    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
    )
    Public Shared Sub CreateMobileStyle( _
       ByVal project As Project, _
       ByVal styleName As String _
    ) 

    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