public FeatureLayer CreateFeatureLayer( FeatureClass featureClass, ILayerContainerEdit mapOrGroupLayer, LayerPosition position, string layerName, RendererDefinition rendererDefinition )
Public Overloads Function CreateFeatureLayer( _ ByVal featureClass As FeatureClass, _ ByVal mapOrGroupLayer As ILayerContainerEdit, _ Optional ByVal position As LayerPosition, _ Optional ByVal layerName As String, _ Optional ByVal rendererDefinition As RendererDefinition _ ) As FeatureLayer
Parameters
- featureClass
- An ArcGIS.Core.Data.FeatureClas
- mapOrGroupLayer
- A map or group layer instance to which the Feature Layer will be added
- position
- LayerPosition specifies whether the Feature Layer should be auto positioned or be on the top or at the bottom
- layerName
- (optional) When it is not provided, the default display name gets used e.g. the dataset name or alias. (default value = "")
- rendererDefinition
- (optional) Provide a RendererDefinition to create a FeatureLayer with your custom renderer instead of the default renderer that gets generated automatically. (default value = null)