ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StyleHelper Class / UpdateItem Method
The StyleProjectItem from which StyleItem will be updated.
The StyleItem to be updated.
Version

UpdateItem Method
Updates a style item from a style. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static void UpdateItem( 
   StyleProjectItem styleProjectItem,
   StyleItem item
)

Parameters

styleProjectItem
The StyleProjectItem from which StyleItem will be updated.
item
The StyleItem to be updated.
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Updating an item cannot be performed on a read-only style.
The item could not be updated. The key may not be unique.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also