ArcGIS Pro 2.7 API Reference Guide
ColorRamp Property (ColorRampStyleItem)
Example 

ArcGIS.Desktop.Mapping Namespace > ColorRampStyleItem Class : ColorRamp Property
Gets or sets the ArcGIS.Core.CIM.CIMColorRamp of the color ramp style item.
Syntax
public CIMColorRamp ColorRamp {get; set;}
Public Property ColorRamp As CIMColorRamp
Exceptions
ExceptionDescription
This property must be called within the lambda passed to QueuedTask.Run
Example
ColorRampStyleItem colorRampItem = null;
CIMColorRamp colorRamp = await QueuedTask.Run<CIMColorRamp>(() =>
{
  return colorRampItem.ColorRamp;
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ColorRampStyleItem Class
ColorRampStyleItem Members