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

In This Topic
    ShapeType Property (BasicFeatureLayer)
    In This Topic
    Gets the geometry type of the layer.
    public virtual esriGeometryType ShapeType {get;}
    Public Overridable ReadOnly Property ShapeType As esriGeometryType
    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();

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also