ArcGIS Pro 2.7 API Reference Guide
UpdateItem Method

ArcGIS.Desktop.Mapping Namespace > StyleHelper Class : UpdateItem Method
The StyleProjectItem from which StyleItem will be updated.
The StyleItem to be updated.
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
)
Public Shared Sub UpdateItem( _
   ByVal styleProjectItem As StyleProjectItem, _
   ByVal item As StyleItem _
) 

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 10, Windows 8.1

See Also

Reference

StyleHelper Class
StyleHelper Members