ArcGIS Pro 2.7 API Reference Guide
ConstructMarker(CIMColor,Double,SimpleMarkerStyle) Method
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class > ConstructMarker Method : ConstructMarker(CIMColor,Double,SimpleMarkerStyle) Method
ArcGIS.Core.CIM.CIMColor
The size of the marker to construct.
SimpleMarkerStyle
Constructs a marker of specific color, size and style. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Function ConstructMarker( _
   ByVal color As CIMColor, _
   ByVal size As Double, _
   ByVal markerStyle As SimpleMarkerStyle _
) As CIMMarker

Parameters

color
ArcGIS.Core.CIM.CIMColor
size
The size of the marker to construct.
markerStyle
SimpleMarkerStyle

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Example
await QueuedTask.Run(() =>
{
  CIMMarker marker = SymbolFactory.Instance.ConstructMarker(ColorFactory.Instance.GreenRGB, 8.0, SimpleMarkerStyle.Pushpin);
  CIMPointSymbol pointSymbolFromMarker = SymbolFactory.Instance.ConstructPointSymbol(marker);
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SymbolFactory Class
SymbolFactory Members
Overload List