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

In This Topic
    Color Property (ColorStyleItem)
    In This Topic
    Gets or sets the ArcGIS.Core.CIM.CIMColor of the color style item.
    Syntax
    public CIMColor Color {get; set;}
    Public Property Color As CIMColor
    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;
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also