ArcGIS Pro 2.6 API Reference Guide
ConstructPolygonSymbol(CIMColor,SimpleFillStyle,CIMStroke) Method
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class > ConstructPolygonSymbol Method : ConstructPolygonSymbol(CIMColor,SimpleFillStyle,CIMStroke) Method
ArcGIS.Core.CIM.CIMColor
SimpleFillStyle
ArcGIS.Core.CIM.CIMStroke
Constructs a polygon symbol of specific color, style and outline.
Syntax
Public Overloads Function ConstructPolygonSymbol( _
   ByVal color As CIMColor, _
   ByVal fillStyle As SimpleFillStyle, _
   ByVal outline As CIMStroke _
) As CIMPolygonSymbol

Parameters

color
ArcGIS.Core.CIM.CIMColor
fillStyle
SimpleFillStyle
outline
ArcGIS.Core.CIM.CIMStroke

Return Value

Remarks
Passing null for outline will create a polygon symbol without an outline.
Example
CIMStroke outline = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.BlueRGB, 2.0, SimpleLineStyle.Solid);
CIMPolygonSymbol fillWithOutline = SymbolFactory.Instance.ConstructPolygonSymbol(ColorFactory.Instance.RedRGB, SimpleFillStyle.Solid, outline);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

SymbolFactory Class
SymbolFactory Members
Overload List