ArcGIS Pro 2.6 API Reference Guide
SubtypeGroupLayerCreationParams Class
Members  Example 

ArcGIS.Desktop.Mapping Namespace : SubtypeGroupLayerCreationParams Class
Represents an object to initialize and create a SubtypeGroupLayer with pre-defined properties such as renderer, visibility etc. for each sublayer.
Object Model
SubtypeGroupLayerCreationParams ClassLayer ClassLayer ClassLayer ClassLayer ClassCIMDataConnection ClassCIMDefinitionFilter ClassItem ClassCIMLayerDocument Class
Syntax
public class SubtypeGroupLayerCreationParams : LayerCreationParams 
Public Class SubtypeGroupLayerCreationParams 
   Inherits LayerCreationParams
Example
Create a subtype group layer.
var subtypeGroupLayerCreateParam = new SubtypeGroupLayerCreationParams
(
    new Uri(@"c:\data\SubtypeAndDomain.gdb\Fittings")
);

// Define Subtype layers
subtypeGroupLayerCreateParam.SubtypeLayers = new List<SubtypeFeatureLayerCreationParams>()
{
  //define first subtype layer with unique value renderer
  new SubtypeFeatureLayerCreationParams()
  {
    SubtypeId = 1,
    RendererDefinition = new UniqueValueRendererDefinition(new string[] { "type" })
  },

  //define second subtype layer with simple symbol renderer
  new SubtypeFeatureLayerCreationParams()
  {
    SubtypeId = 2,
    RendererDefinition = new SimpleRendererDefinition()
    {
        SymbolTemplate = SymbolFactory.Instance.ConstructPointSymbol(
          CIMColor.CreateRGBColor(255, 0, 0), 8, SimpleMarkerStyle.Hexagon).MakeSymbolReference()
    }
  }
};

// Define additional parameters
subtypeGroupLayerCreateParam.DefinitionFilter = new CIMDefinitionFilter()
{
  Name = "IsActive",
  DefinitionExpression = "Enabled = 1"
};
subtypeGroupLayerCreateParam.IsVisible = true;
subtypeGroupLayerCreateParam.MinimumScale = 50000;

SubtypeGroupLayer subtypeGroupLayer2 = LayerFactory.Instance.CreateLayer<SubtypeGroupLayer>(
              subtypeGroupLayerCreateParam, MapView.Active.Map);
Inheritance Hierarchy

System.Object
   ArcGIS.Desktop.Mapping.LayerCreationParams
      ArcGIS.Desktop.Mapping.SubtypeGroupLayerCreationParams

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

SubtypeGroupLayerCreationParams Members
ArcGIS.Desktop.Mapping Namespace