ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicFeatureLayer Class / ShapeType Property
Example

In This Topic
    ShapeType Property (BasicFeatureLayer)
    In This Topic
    Gets the geometry type of the layer.
    Syntax
    public virtual esriGeometryType ShapeType {get;}
    Public Overridable ReadOnly Property ShapeType As esriGeometryType
    Example
    Get a layer of a certain geometry type
    //Get an existing Layer. This layer has a symbol you want to use in a new layer.
    var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>()
          .Where(l => l.ShapeType == esriGeometryType.esriGeometryPoint).FirstOrDefault();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also