ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ColorStyleItem Class / Color Property
Example Version

Color Property (ColorStyleItem)
Gets or sets the ArcGIS.Core.CIM.CIMColor of the color style item.
Syntax
public CIMColor Color {get; set;}
Exceptions
ExceptionDescription
This property must be called within the lambda passed to QueuedTask.Run
Example
Get color from ColorStyleItem
ColorStyleItem colorItem = null;
CIMColor color = await QueuedTask.Run<CIMColor>(() =>
{
  return colorItem.Color;
});
Get color from ColorStyleItem
ColorStyleItem colorItem = null;
CIMColor color = await QueuedTask.Run<CIMColor>(() =>
{
  return colorItem.Color;
});
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also